mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-12-26 12:40:47 +00:00
Decrease the amount of texture clearing when switching palette rendering state
This commit is contained in:
parent
cf16fd2938
commit
725a8195ab
1 changed files with 4 additions and 4 deletions
|
@ -6342,10 +6342,10 @@ static void HWR_TogglePaletteRendering(void)
|
||||||
HWR_SetMapPalette();
|
HWR_SetMapPalette();
|
||||||
HWR_SetPalette(pLocalPalette);
|
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
|
// 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.
|
// composite texture blending method has changed. Therefore they need to be cleared.
|
||||||
HWD.pfnClearMipMapCache();
|
HWR_LoadMapTextures(numtextures);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -6356,10 +6356,10 @@ static void HWR_TogglePaletteRendering(void)
|
||||||
gl_palette_rendering_state = false;
|
gl_palette_rendering_state = false;
|
||||||
textureformat = GL_TEXFMT_RGBA;
|
textureformat = GL_TEXFMT_RGBA;
|
||||||
HWR_SetPalette(pLocalPalette);
|
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
|
// 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.
|
// composite texture blending method has changed. Therefore they need to be cleared.
|
||||||
HWD.pfnClearMipMapCache();
|
HWR_LoadMapTextures(numtextures);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue