diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/renderer/tr_shader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/renderer/tr_shader.c b/src/renderer/tr_shader.c index 2bbc3a12..6bbaa8ca 100644 --- a/src/renderer/tr_shader.c +++ b/src/renderer/tr_shader.c @@ -628,7 +628,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]; |