2
0
Nicolas Cannasse 6 жил өмнө
parent
commit
882b018dbe

+ 6 - 2
h3d/impl/DirectXDriver.hx

@@ -1154,9 +1154,13 @@ class DirectXDriver extends h3d.impl.Driver {
 			currentIndex = ibuf;
 			dx.Driver.iaSetIndexBuffer(ibuf.res,ibuf.bits == 2,0);
 		}
-		if( commands.data == null )
+		if( commands.data == null ) {
+			#if (hldx >= "1.10")
 			dx.Driver.drawIndexedInstanced(commands.indexCount, commands.commandCount, 0, 0, 0);
-		else
+			#else
+			throw "Requires HLDX 1.10+";
+			#end
+		} else
 			dx.Driver.drawIndexedInstancedIndirect(commands.data, 0);
 	}