瀏覽代碼

set the alignedarray sizes to maxprobes, reguardless of actual probe count

Azaezel 6 年之前
父節點
當前提交
72acec0a3f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Engine/source/renderInstance/renderProbeMgr.cpp

+ 1 - 1
Engine/source/renderInstance/renderProbeMgr.cpp

@@ -770,7 +770,7 @@ void RenderProbeMgr::render( SceneRenderState *state )
 
 
       GFX->setCubeArrayTexture(4, mCubemapArray);
       GFX->setCubeArrayTexture(4, mCubemapArray);
       GFX->setCubeArrayTexture(5, mIrradArray);
       GFX->setCubeArrayTexture(5, mIrradArray);
-      
+      count = MAXPROBECOUNT;
       //Final packing
       //Final packing
       AlignedArray<Point4F> _probePositions(count, sizeof(Point4F), (U8*)probePositions.address(), false);
       AlignedArray<Point4F> _probePositions(count, sizeof(Point4F), (U8*)probePositions.address(), false);
       AlignedArray<Point4F> _probeBBMin(count, sizeof(Point4F), (U8*)probeBBMin.address(), false);
       AlignedArray<Point4F> _probeBBMin(count, sizeof(Point4F), (U8*)probeBBMin.address(), false);