vk: Fix for light without current entity(5e7082e7)

This commit is contained in:
Denis Pauk 2020-01-18 14:10:07 +02:00 committed by Yamagi
parent 63f6cdf698
commit a26d91ffc0

View file

@ -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;