From 681d0e7370728a95fe919b5eb547c6feaa381ef7 Mon Sep 17 00:00:00 2001 From: Alug Date: Sat, 9 Aug 2025 17:13:13 +0200 Subject: [PATCH] use memcmp for legacy sky check just gotta know if first three letters match it --- 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 00eba196b..d45d20887 100644 --- a/src/hardware/hw_cache.c +++ b/src/hardware/hw_cache.c @@ -328,7 +328,7 @@ static void HWR_GenerateTexture(INT32 texnum, GLMapTexture_t *gltex, boolean noe gltex->mipmap.format = textureformat; // hack the Legacy skies.. - if (UNLIKELY(strncmp(texture->name, "SKY", 3) == 0 && + if (UNLIKELY(memcmp(texture->name, "SKY", 3) == 0 && (texture->name[4] == 0 || texture->name[5] == 0))) { skyspecial = true;