Commit ba472fe3 authored by BearOso's avatar BearOso
Browse files

Actually use buffer_size.

parent 4f634fcf
......@@ -277,6 +277,7 @@ static void S9xPutImageMetal (int width, int height, uint16 *buffer16)
if (buffer_size != width * height * 4)
{
buffer = (uint8 *)realloc(buffer, width * height * 4);
buffer_size = width * height * 4;
}
for (int y = 0; y < height; y++)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment