mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-14 08:30:50 +00:00
Merge commit '8678baf6f589a68635939a1063a28231a0aa01a1'
# Conflicts: # src/r_data/colormaps.cpp # src/r_main.cpp # src/r_segs.cpp # src/r_things.cpp # wadsrc/static/language.enu # wadsrc/static/menudef.txt
This commit is contained in:
commit
1ae478aacd
1 changed files with 16 additions and 1 deletions
|
@ -73,6 +73,7 @@ struct FakeCmap
|
||||||
|
|
||||||
TArray<FakeCmap> fakecmaps;
|
TArray<FakeCmap> fakecmaps;
|
||||||
FSWColormap realcolormaps;
|
FSWColormap realcolormaps;
|
||||||
|
FSWColormap realfbcolormaps; //[SP] For fullbright use
|
||||||
size_t numfakecmaps;
|
size_t numfakecmaps;
|
||||||
|
|
||||||
|
|
||||||
|
@ -456,6 +457,12 @@ void R_DeinitColormaps ()
|
||||||
SpecialColormaps.Clear();
|
SpecialColormaps.Clear();
|
||||||
fakecmaps.Clear();
|
fakecmaps.Clear();
|
||||||
delete[] realcolormaps.Maps;
|
delete[] realcolormaps.Maps;
|
||||||
|
if (realfbcolormaps != NULL)
|
||||||
|
{
|
||||||
|
delete[] realfbcolormaps;
|
||||||
|
realfbcolormaps = NULL;
|
||||||
|
}
|
||||||
|
delete[] realfbcolormaps.Maps;
|
||||||
FreeSpecialLights();
|
FreeSpecialLights();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -545,12 +552,20 @@ void R_InitColormaps ()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// [SP] Create a copy of the colormap
|
||||||
|
if (!realfbcolormaps)
|
||||||
|
{
|
||||||
|
realfbcolormaps = new BYTE[256*NUMCOLORMAPS*fakecmaps.Size()];
|
||||||
|
memcpy(realfbcolormaps, realcolormaps, 256*NUMCOLORMAPS*fakecmaps.Size());
|
||||||
|
}
|
||||||
|
|
||||||
NormalLight.Color = PalEntry (255, 255, 255);
|
NormalLight.Color = PalEntry (255, 255, 255);
|
||||||
NormalLight.Fade = 0;
|
NormalLight.Fade = 0;
|
||||||
NormalLight.Maps = realcolormaps.Maps;
|
NormalLight.Maps = realcolormaps.Maps;
|
||||||
FullNormalLight.Color = PalEntry (255, 255, 255);
|
FullNormalLight.Color = PalEntry (255, 255, 255);
|
||||||
FullNormalLight.Fade = 0;
|
FullNormalLight.Fade = 0;
|
||||||
FullNormalLight.Maps = realcolormaps.Maps;
|
FullNormalLight.Maps = realfbcolormaps.Maps;
|
||||||
NormalLightHasFixedLights = R_CheckForFixedLights(realcolormaps.Maps);
|
NormalLightHasFixedLights = R_CheckForFixedLights(realcolormaps.Maps);
|
||||||
numfakecmaps = fakecmaps.Size();
|
numfakecmaps = fakecmaps.Size();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue