浏览代码

MeshBatch : EnableUpdateGpu implicitly set EnableStorageBuffer

TothBenoit 1 年之前
父节点
当前提交
042904b461
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      h3d/scene/MeshBatch.hx

+ 1 - 1
h3d/scene/MeshBatch.hx

@@ -338,7 +338,7 @@ class MeshBatch extends MultiMaterial {
 			if ( meshBatchFlags != flags )
 				shadersChanged = true;
 			meshBatchFlags = flags;
-			meshBatchFlags.setTo( EnableStorageBuffer, enableLOD || enableGPUCulling || useStorageBuffer );
+			meshBatchFlags.setTo( EnableStorageBuffer, mustCalcBufferFormat || useStorageBuffer );
 		}
 
 		instanceCount = 0;