Nicolas Cannasse %!s(int64=9) %!d(string=hai) anos
pai
achega
1e085c9a14
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  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;