Browse Source

fix for hxsdl

Nicolas Cannasse 9 years ago
parent
commit
f30081c4c7
1 changed files with 2 additions and 0 deletions
  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);