From bbead25071b8181b8d365d7ec3e4a38d213c6aa6 Mon Sep 17 00:00:00 2001 From: Roman Fomin Date: Wed, 4 Sep 2024 01:29:57 +0700 Subject: [PATCH] store the size of the decoded image for flats --- src/v_fmt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/v_fmt.c b/src/v_fmt.c index 5d558890..7b5eab18 100644 --- a/src/v_fmt.c +++ b/src/v_fmt.c @@ -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);