瀏覽代碼

fix for hxsdl

Nicolas Cannasse 9 年之前
父節點
當前提交
f30081c4c7
共有 1 個文件被更改,包括 2 次插入0 次删除
  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);