Initialize premultiplied in ImageBuffer's constructor

This commit is contained in:
vroad
2016-05-26 00:13:10 +09:00
parent 1f4d08cddd
commit 6c35e54c8d

View File

@@ -48,6 +48,7 @@ class ImageBuffer {
this.height = height;
this.bitsPerPixel = bitsPerPixel;
this.format = (format == null ? RGBA32 : format);
premultiplied = false;
transparent = true;
}