diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index b133c1bc5..befe25b26 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -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) {