Browse Source

Initialize geometry type of light volume batches.

Lasse Öörni 12 years ago
parent
commit
40c7c0f7af
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Source/Engine/Graphics/View.cpp

+ 1 - 0
Source/Engine/Graphics/View.cpp

@@ -915,6 +915,7 @@ void View::GetBatches()
                 {
                 {
                     Batch volumeBatch;
                     Batch volumeBatch;
                     volumeBatch.geometry_ = renderer_->GetLightGeometry(light);
                     volumeBatch.geometry_ = renderer_->GetLightGeometry(light);
+                    volumeBatch.geometryType_ = GEOM_STATIC;
                     volumeBatch.worldTransform_ = &light->GetVolumeTransform(camera_);
                     volumeBatch.worldTransform_ = &light->GetVolumeTransform(camera_);
                     volumeBatch.numWorldTransforms_ = 1;
                     volumeBatch.numWorldTransforms_ = 1;
                     volumeBatch.overrideView_ = light->GetLightType() == LIGHT_DIRECTIONAL;
                     volumeBatch.overrideView_ = light->GetLightType() == LIGHT_DIRECTIONAL;