mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-17 01:21:12 +00:00
vk: Fix for light without current entity(5e7082e7
)
This commit is contained in:
parent
63f6cdf698
commit
a26d91ffc0
1 changed files with 1 additions and 1 deletions
|
@ -305,7 +305,7 @@ void R_LightPoint (vec3_t p, vec3_t color)
|
|||
vec3_t dist;
|
||||
float add;
|
||||
|
||||
if (!r_worldmodel->lightdata)
|
||||
if (!r_worldmodel->lightdata || !currententity)
|
||||
{
|
||||
color[0] = color[1] = color[2] = 1.0;
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue