git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6476
d7cf8633-e32d-0410-b094-
e92efae38249
{
if (modellighting)
permutation |= SHADERPERMUTATION_MODE_LIGHTDIRECTION;
- else
+ else if (r_glsl_deluxemapping.integer >= 1 && rsurface_lightmaptexture)
{
- if (r_glsl_deluxemapping.integer >= 1 && r_refdef.worldmodel && r_refdef.worldmodel->brushq3.deluxemapping && rsurface_lightmaptexture)
+ if (r_refdef.worldmodel && r_refdef.worldmodel->brushq3.deluxemapping)
{
if (r_refdef.worldmodel->brushq3.deluxemapping_modelspace)
permutation |= SHADERPERMUTATION_MODE_LIGHTDIRECTIONMAP_MODELSPACE;