2
0
Nicolas Cannasse 7 жил өмнө
parent
commit
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 ) {