mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 06:53:40 +00:00
- Amend previous commit: fix the wallsprites crash.
This commit is contained in:
parent
1a5f0fd40a
commit
97a4080496
1 changed files with 4 additions and 4 deletions
|
@ -165,13 +165,13 @@ namespace swrenderer
|
|||
return;
|
||||
|
||||
// Prepare lighting
|
||||
|
||||
FSWColormap *usecolormap = spr->Light.BaseColormap;
|
||||
// Decals that are added to the scene must fade to black.
|
||||
ColormapLight cmlight;
|
||||
if ((cmlight.BaseColormap) &&
|
||||
(spr->RenderStyle == LegacyRenderStyles[STYLE_Add] && cmlight.BaseColormap->Fade != 0))
|
||||
if (usecolormap &&
|
||||
spr->RenderStyle == LegacyRenderStyles[STYLE_Add] && usecolormap->Fade != 0)
|
||||
{
|
||||
cmlight.BaseColormap = GetSpecialLights(cmlight.BaseColormap->Color, 0, cmlight.BaseColormap->Desaturate);
|
||||
cmlight.BaseColormap = GetSpecialLights(usecolormap->Color, 0, usecolormap->Desaturate);
|
||||
}
|
||||
|
||||
SpriteDrawerArgs drawerargs;
|
||||
|
|
Loading…
Reference in a new issue