Don't set all of the memory to zero when we specify an image without any pixels

This commit is contained in:
Pavel Krajcevski 2013-08-31 16:43:32 -04:00
parent 992c72e4b5
commit 36641c2268

View File

@ -65,7 +65,6 @@ Image::Image(uint32 height, uint32 width)
, m_Pixels(new Pixel[width * height]) {
assert(width > 0);
assert(height > 0);
memset(m_Pixels, 0, width * height * sizeof(Pixel));
}
Image::Image(uint32 height, uint32 width, const Pixel *pixels)