mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-26 06:20:48 +00:00
gl3,gl4: check worldmodel before dlight push
Fix crash if open multiplayer before load map.
This commit is contained in:
parent
083ea68a80
commit
4d56576871
2 changed files with 10 additions and 0 deletions
|
@ -38,6 +38,11 @@ GL3_PushDlights(void)
|
|||
dlight_t *l;
|
||||
int i;
|
||||
|
||||
if (!gl3_worldmodel)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
/* because the count hasn't advanced yet for this frame */
|
||||
r_dlightframecount = gl3_framecount + 1;
|
||||
|
||||
|
|
|
@ -38,6 +38,11 @@ GL4_PushDlights(void)
|
|||
dlight_t *l;
|
||||
int i;
|
||||
|
||||
if (!gl4_worldmodel)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
/* because the count hasn't advanced yet for this frame */
|
||||
r_dlightframecount = gl4_framecount + 1;
|
||||
|
||||
|
|
Loading…
Reference in a new issue