浏览代码

Fix instanced primitive allocation (has not necessarily indexes).

clementlandrin 1 年之前
父节点
当前提交
0fd9a7c0e0
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 )