Explorar el Código

MeshBatch : EnableUpdateGpu implicitly set EnableStorageBuffer

TothBenoit hace 1 año
padre
commit
042904b461
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;