Decrease the amount of texture clearing when switching palette rendering state

This commit is contained in:
Alug committed 2024-01-10 12:53:38 +01:00
1 parent f4ded02c23
commit 2c69f67d39
1 file changed
+6 -5
+6 -5
View File
@@ -6334,10 +6334,11 @@ void HWR_TogglePaletteRendering(void)
HWR_SetMapPalette();
HWR_SetPalette(pLocalPalette);
// If the r_opengl "texture palette" stays the same during this switch, the textures
// If the r_opengl "texture palette" stays the same during this switch, these textures
// will not be cleared out. However they are still out of date since the
// composite texture blending method has changed. Therefore they need to be cleared.
HWD.pfnClearMipMapCache();
//HWD.pfnClearMipMapCache();
HWR_PrepLevelCache(numtextures);
}
}
else
@@ -6348,15 +6349,15 @@ void HWR_TogglePaletteRendering(void)
gr_palette_rendering_state = false;
textureformat = GR_RGBA;
HWR_SetPalette(pLocalPalette);
// If the r_opengl "texture palette" stays the same during this switch, the textures
// If the r_opengl "texture palette" stays the same during this switch, these textures
// will not be cleared out. However they are still out of date since the
// composite texture blending method has changed. Therefore they need to be cleared.
HWD.pfnClearMipMapCache();
//HWD.pfnClearMipMapCache();
HWR_PrepLevelCache(numtextures);
}
}
}
//added by Hurdler: console varibale that are saved
void HWR_AddCommands(void)
{