mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 15:02:39 +00:00
- softpoly: fix sprites still lit when dynlights off
This commit is contained in:
parent
6d6ee1281e
commit
2e5b7a7d8b
1 changed files with 1 additions and 1 deletions
|
@ -372,7 +372,7 @@ FTexture *RenderPolySprite::GetSpriteTexture(AActor *thing, /*out*/ bool &flipX)
|
|||
void RenderPolySprite::SetDynlight(AActor *thing, PolyDrawArgs &args)
|
||||
{
|
||||
bool fullbrightSprite = ((thing->renderflags & RF_FULLBRIGHT) || (thing->flags5 & MF5_BRIGHT));
|
||||
if (fullbrightSprite)
|
||||
if (fullbrightSprite || !r_dynlights)
|
||||
{
|
||||
args.SetDynLightColor(0);
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue