Actually use buffer_size.

This commit is contained in:
BearOso 2022-04-10 21:04:56 -05:00
parent 4f634fcfb2
commit ba472fe3ef
1 changed files with 1 additions and 0 deletions

View File

@ -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++)