Compile fix

This commit is contained in:
Joshua Granick
2016-07-07 15:08:07 -07:00
parent 07cb25ed0d
commit 50635da2ce

View File

@@ -101,12 +101,7 @@ class PNG {
try {
var bytes = Bytes.alloc (image.width * image.height * 4 + image.height);
#if flash
var sourceBytes = Bytes.ofData (image.buffer.data.getByteBuffer ());
#else
var sourceBytes = cast image.buffer.data;
#end
var sourceBytes = image.buffer.data.toBytes ();
var sourceIndex:Int, index:Int;