store the size of the decoded image for flats

This commit is contained in:
Roman Fomin 2024-09-04 01:29:57 +07:00
parent 4bc92a14c3
commit bbead25071

View File

@ -813,6 +813,7 @@ void *V_CacheFlatNum(int lump, pu_tag tag)
Z_Free(buffer);
lumpinfo[lump].fmt_size = png.image_size;
Z_Malloc(png.image_size, tag, &lumpcache[lump]);
memcpy(lumpcache[lump], png.image, png.image_size);