From 50635da2cefa4ab1131b57ee3d74254ef7d6a2f3 Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Thu, 7 Jul 2016 15:08:07 -0700 Subject: [PATCH] Compile fix --- lime/graphics/format/PNG.hx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lime/graphics/format/PNG.hx b/lime/graphics/format/PNG.hx index 8a4758c1c..e7bb963a1 100644 --- a/lime/graphics/format/PNG.hx +++ b/lime/graphics/format/PNG.hx @@ -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;