Explorar el Código

fix context lost in cast of shared primitive

trethaller hace 5 años
padre
commit
2413919882
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      h3d/prim/Instanced.hx

+ 1 - 1
h3d/prim/Instanced.hx

@@ -67,7 +67,7 @@ class Instanced extends MeshPrimitive {
 	}
 
 	override function render( engine : h3d.Engine ) {
-		if( primitive.buffer.isDisposed() )
+		if( buffer.isDisposed() )
 			setMesh(primitive);
 		engine.renderInstanced(getBuffers(engine),indexes,commands);
 	}