From 51adf8869c8a3dd414ffa869d20415ab5a4f6ab5 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 95e5d7822..3b7704cee 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))