From e5d5ac884a398734b602ce3b33ed3fedae6f6327 Mon Sep 17 00:00:00 2001 From: Alug Date: Mon, 2 Nov 2026 14:58:40 +0100 Subject: [PATCH] HWR_PrecacheLevelTextures should also skip texture number 0 whoopsie --- src/hardware/hw_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hardware/hw_cache.c b/src/hardware/hw_cache.c index 356355756..f16e4a2da 100644 --- a/src/hardware/hw_cache.c +++ b/src/hardware/hw_cache.c @@ -752,7 +752,7 @@ static void HWR_PrecacheLevelTextures(void) { const INT32 texnum = sidetex[f]; - if (texnum < 0 || (unsigned)texnum >= gl_numtextures) + if (texnum <= 0 || (unsigned)texnum >= gl_numtextures) continue; if (!(texturepresent[texnum] & 1))