瀏覽代碼

fixed flash compilation

Nicolas Cannasse 7 年之前
父節點
當前提交
cd17902b3a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      h3d/mat/Texture.hx

+ 1 - 1
h3d/mat/Texture.hx

@@ -319,7 +319,7 @@ class Texture {
 		e.driver.captureRenderBuffer(alpha);
 		var alphaPos = hxd.Pixels.getChannelOffset(alpha.format, A);
 		var redPos = hxd.Pixels.getChannelOffset(alpha.format, R);
-		var bpp = hxd.Pixels.bytesPerPixel(alpha.format);
+		var bpp = alpha.bytesPerPixel;
 		for( y in 0...height ) {
 			var p = y * width * bpp;
 			for( x in 0...width ) {