IOQ3 commit 2248

This commit is contained in:
Richard Allen 2012-10-04 14:19:24 +00:00
parent dc71639588
commit 08571963a0
1 changed files with 1 additions and 1 deletions

View File

@ -627,7 +627,7 @@ static qboolean ParseStage( shaderStage_t *stage, char **text )
else if ( !Q_stricmp( token, "$lightmap" ) )
{
stage->bundle[0].isLightmap = qtrue;
if ( shader.lightmapIndex < 0 ) {
if ( shader.lightmapIndex < 0 || !tr.lightmaps ) {
stage->bundle[0].image[0] = tr.whiteImage;
} else {
stage->bundle[0].image[0] = tr.lightmaps[shader.lightmapIndex];