somehow this is slightly faster

This commit is contained in:
Alug committed 2025-04-06 10:59:59 +02:00
1 parent 6ebf6a2797
commit b14b01d5c9
1 file changed
+5 -5
+5 -5
View File
@@ -998,11 +998,11 @@ void HWR_GetMappedPatch(GLPatch_t *glPatch, const UINT8 *colormap)
{
glMipmap = glMipmap->nextcolormap;
if (glMipmap->colormap != colormap)
continue;
HWR_LoadMappedPatch(glMipmap, glPatch);
return;
if (glMipmap->colormap == colormap)
{
HWR_LoadMappedPatch(glMipmap, glPatch);
return;
}
}
// not found, create it!
// If we are here, the sprite with the current colormap is not already in hardware memory