mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
Don't try to add polymer lights if not running polymer. This prevents polymost/classic from crashing.
git-svn-id: https://svn.eduke32.com/eduke32@1414 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
a8cd07d692
commit
1bf169aefe
1 changed files with 3 additions and 0 deletions
|
@ -588,6 +588,9 @@ static void ms(int32_t i)
|
|||
inline void G_AddGameLight(int32_t radius, int32_t srcsprite, int32_t zoffset, int32_t range, int32_t color, int32_t priority)
|
||||
{
|
||||
#ifdef POLYMER
|
||||
if (rendmode != 4)
|
||||
return;
|
||||
|
||||
spritetype *s = &sprite[srcsprite];
|
||||
if (ActorExtra[srcsprite].lightptr == NULL)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue