Explorar o código

Fix instanced primitive allocation (has not necessarily indexes).

clementlandrin hai 1 ano
pai
achega
0fd9a7c0e0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      h3d/prim/Instanced.hx

+ 1 - 1
h3d/prim/Instanced.hx

@@ -57,7 +57,7 @@ class Instanced extends Primitive {
 	}
 
 	override function render( engine : h3d.Engine ) {
-		if( primitive.indexes == null || primitive.buffer.isDisposed() )
+		if( primitive.buffer == null || primitive.buffer.isDisposed() )
 			primitive.alloc(engine);
 		@:privateAccess engine.flushTarget();
 		@:privateAccess if( primitive.buffers == null )