소스 검색

minor api change

Nicolas Cannasse 7 년 전
부모
커밋
8f70972913
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      h3d/mat/BigTexture.hx

+ 2 - 2
h3d/mat/BigTexture.hx

@@ -181,11 +181,11 @@ class BigTexture {
 	}
 
 	function uploadPixels( pixels : hxd.Pixels, x : Int, y : Int, alphaChannel ) {
-		var bpp = hxd.Pixels.bytesPerPixel(allPixels.format);
+		var bpp = allPixels.bytesPerPixel;
 		if( alphaChannel ) {
 			var alphaPos = hxd.Pixels.getChannelOffset(allPixels.format, A);
 			var srcRedPos = hxd.Pixels.getChannelOffset(pixels.format, R);
-			var srcBpp = hxd.Pixels.bytesPerPixel(pixels.format);
+			var srcBpp = pixels.bytesPerPixel;
 			for( dy in 0...pixels.height ) {
 				var w = (x + (y + dy) * size) * bpp + alphaPos;
 				var r = dy * pixels.width * srcBpp + srcRedPos;