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:
toaster 2023-01-05 20:21:46 +00:00
parent afafdea14b
commit 496cc2fa0b

View file

@ -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);