Nicolas Cannasse 9 年之前
父節點
當前提交
1e085c9a14
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      h3d/impl/GlDriver.hx
  2. 1 1
      hxd/impl/UInt16.hx

+ 1 - 1
h3d/impl/GlDriver.hx

@@ -554,7 +554,7 @@ class GlDriver extends Driver {
 	override function uploadIndexBuffer( i : IndexBuffer, startIndice : Int, indiceCount : Int, buf : hxd.IndexBuffer, bufPos : Int ) {
 		gl.bindBuffer(GL.ELEMENT_ARRAY_BUFFER, i);
 		#if hxsdl
-		var data = #if hl @:privateAccess (cast buf.getNative() : hl.types.ArrayBase.ArrayI16).bytes #else buf.getNative() #end;
+		var data = #if hl @:privateAccess (cast buf.getNative() : hl.types.ArrayBase.ArrayUI16).bytes #else buf.getNative() #end;
 		gl.bufferSubData(GL.ELEMENT_ARRAY_BUFFER, startIndice * 2, data, bufPos, indiceCount * 2);
 		#else
 		var buf = new Uint16Array(buf.getNative());

+ 1 - 1
hxd/impl/UInt16.hx

@@ -1,3 +1,3 @@
 package hxd.impl;
 
-typedef UInt16 = #if cpp cpp.UInt16 #elseif hl hl.types.I16 #else Int #end;
+typedef UInt16 = #if cpp cpp.UInt16 #elseif hl hl.types.UI16 #else Int #end;