Skip to content

Commit

Permalink
Revert "- fixed a crash in the software renderer that caused wallspri…
Browse files Browse the repository at this point in the history
…tes to crash"

This reverts commit 0dea6fc.
  • Loading branch information
drfrag666 authored and coelckers committed Oct 5, 2019
1 parent b02ef69 commit 3384309
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/rendering/swrenderer/things/r_wallsprite.cpp
Expand Up @@ -141,19 +141,7 @@ namespace swrenderer
vis->wallc = wallc;
vis->foggy = foggy;

if (vis->RenderStyle == LegacyRenderStyles[STYLE_Add] && basecolormap->Fade != 0)
{
basecolormap = GetSpecialLights(basecolormap->Color, 0, basecolormap->Desaturate);
}
bool fullbright = !vis->foggy && ((renderflags & RF_FULLBRIGHT) || (thing->flags5 & MF5_BRIGHT));

bool invertcolormap = (vis->RenderStyle.Flags & STYLEF_InvertOverlay) != 0;
if (vis->RenderStyle.Flags & STYLEF_InvertSource)
invertcolormap = !invertcolormap;

bool fadeToBlack = (vis->RenderStyle.Flags & STYLEF_FadeToBlack) != 0;

vis->Light.SetColormap(thread, tz, lightlevel, foggy, basecolormap, fullbright, invertcolormap, fadeToBlack, false, false);
vis->Light.SetColormap(thread, tz, lightlevel, foggy, basecolormap, false, false, false, false, false);

thread->SpriteList->Push(vis);
}
Expand Down

0 comments on commit 3384309

Please sign in to comment.