mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 15:21:51 +00:00
- fixed: Dynamic lights may not execute their tick() function when the software renderer is active.
This commit is contained in:
parent
62fd6c8e74
commit
c47c3169b3
1 changed files with 5 additions and 1 deletions
|
@ -52,6 +52,7 @@
|
||||||
|
|
||||||
EXTERN_CVAR (Float, gl_lights_size);
|
EXTERN_CVAR (Float, gl_lights_size);
|
||||||
EXTERN_CVAR (Bool, gl_lights_additive);
|
EXTERN_CVAR (Bool, gl_lights_additive);
|
||||||
|
EXTERN_CVAR(Int, vid_renderer)
|
||||||
|
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
@ -218,7 +219,10 @@ void ADynamicLight::Deactivate(AActor *activator)
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
void ADynamicLight::Tick()
|
void ADynamicLight::Tick()
|
||||||
{
|
{
|
||||||
|
if (vid_renderer == 0)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (IsOwned())
|
if (IsOwned())
|
||||||
{
|
{
|
||||||
if (!target || !target->state)
|
if (!target || !target->state)
|
||||||
|
|
Loading…
Reference in a new issue