mirror of https://github.com/snes9xgit/snes9x.git
Actually use buffer_size.
This commit is contained in:
parent
4f634fcfb2
commit
ba472fe3ef
|
@ -277,6 +277,7 @@ static void S9xPutImageMetal (int width, int height, uint16 *buffer16)
|
||||||
if (buffer_size != width * height * 4)
|
if (buffer_size != width * height * 4)
|
||||||
{
|
{
|
||||||
buffer = (uint8 *)realloc(buffer, width * height * 4);
|
buffer = (uint8 *)realloc(buffer, width * height * 4);
|
||||||
|
buffer_size = width * height * 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int y = 0; y < height; y++)
|
for (int y = 0; y < height; y++)
|
||||||
|
|
Loading…
Reference in New Issue