mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2024-11-24 16:25:48 +01:00
Don't set all of the memory to zero when we specify an image without any pixels
This commit is contained in:
parent
992c72e4b5
commit
36641c2268
@ -65,7 +65,6 @@ Image::Image(uint32 height, uint32 width)
|
|||||||
, m_Pixels(new Pixel[width * height]) {
|
, m_Pixels(new Pixel[width * height]) {
|
||||||
assert(width > 0);
|
assert(width > 0);
|
||||||
assert(height > 0);
|
assert(height > 0);
|
||||||
memset(m_Pixels, 0, width * height * sizeof(Pixel));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Image::Image(uint32 height, uint32 width, const Pixel *pixels)
|
Image::Image(uint32 height, uint32 width, const Pixel *pixels)
|
||||||
|
Loading…
Reference in New Issue
Block a user