mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
CV_palette_OnChange: do not reload colour cube until LOADED_CONFIG is complete
No substitute for an actual mutex on the palette, but this does at least prevent 21 redundant calls to palette reinitialisation
This commit is contained in:
parent
afafdea14b
commit
496cc2fa0b
1 changed files with 2 additions and 0 deletions
|
|
@ -476,6 +476,8 @@ void V_SetPaletteLump(const char *pal)
|
|||
|
||||
static void CV_palette_OnChange(void)
|
||||
{
|
||||
if (con_startup_loadprogress < LOADED_CONFIG)
|
||||
return;
|
||||
// recalculate Color Cube
|
||||
V_ReloadPalette();
|
||||
V_SetPalette(0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue