소스 검색

fix for haxe 3.2

Nicolas Cannasse 10 년 전
부모
커밋
1698e6303f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      hxd/BitmapData.hx

+ 1 - 1
hxd/BitmapData.hx

@@ -345,7 +345,7 @@ class BitmapData {
 				pixels.push(data[i]);
 			#else
 			// starting from Haxe 3.2, bytes are based on native array
-			var pixels = data;
+			var pixels = data.buffer;
 			#end
 		return new Pixels(w, h, haxe.io.Bytes.ofData(pixels), RGBA);
 		#else