layers have a valid _glow texture to render with (otherwise substitute
black in their place)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11634
d7cf8633-e32d-0410-b094-
e92efae38249
t->backgroundglowtexture = t->backgroundcurrentskinframe->glow;
if (!t->backgroundnmaptexture)
t->backgroundnmaptexture = r_texture_blanknormalmap;
+ // make sure that if glow is going to be used, both textures are not NULL
+ if (!t->backgroundglowtexture && t->glowtexture)
+ t->backgroundglowtexture = r_texture_black;
+ if (!t->glowtexture && t->backgroundglowtexture)
+ t->glowtexture = r_texture_black;
}
else
{