Explorar o código

fix for hxsdl

Nicolas Cannasse %!s(int64=9) %!d(string=hai) anos
pai
achega
f30081c4c7
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      h3d/impl/GlDriver.hx

+ 2 - 0
h3d/impl/GlDriver.hx

@@ -496,6 +496,7 @@ class GlDriver extends Driver {
 	#end
 	}
 
+	#if !hxsdl
 	inline static function bytesToUint8Array( b : haxe.io.Bytes ) : Uint8Array {
 		#if (lime && !js)
 		return new Uint8Array(b);
@@ -503,6 +504,7 @@ class GlDriver extends Driver {
 		return new Uint8Array(b.getData());
 		#end
 	}
+	#end
 
 	override function uploadTexturePixels( t : h3d.mat.Texture, pixels : hxd.Pixels, mipLevel : Int, side : Int ) {
 		gl.bindTexture(GL.TEXTURE_2D, t.t.t);