mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
- Fix crash in legacy and deferred light paths
This commit is contained in:
parent
2375823055
commit
b9dc06a4c8
1 changed files with 7 additions and 0 deletions
|
@ -179,6 +179,13 @@ void BSPWalkCircle(float x, float y, float radiusSquared, const Callback &callba
|
|||
|
||||
void gl_SetDynModelLight(AActor *self, bool hudmodel)
|
||||
{
|
||||
// Legacy and deferred render paths gets the old flat model light
|
||||
if (gl.lightmethod != LM_DIRECT)
|
||||
{
|
||||
gl_SetDynSpriteLight(self, nullptr);
|
||||
return;
|
||||
}
|
||||
|
||||
modellightdata.Clear();
|
||||
|
||||
if (self)
|
||||
|
|
Loading…
Reference in a new issue