- var buf = bmp.copy_pixels
- var png = new Opengles1Image.from_data(buf.native_array, bmp.width, bmp.height, bmp.width, bmp.height, bmp.has_alpha)
+ var buf = bmp.copy_pixels(true, true)
+ var w2 = bmp.width.next_pow(2)
+ var h2 = bmp.height.next_pow(2)
+ var png = new Opengles1Image.from_data(buf.native_array, bmp.width, bmp.height, w2, h2, true)