use memcmp for legacy sky check

just gotta know if first three letters match it
This commit is contained in:
Alug committed 2025-08-09 17:13:13 +02:00
1 parent b7a6f4715a
commit 681d0e7370
1 file changed
+1 -1
+1 -1
View File
@@ -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;