diff --git a/code/renderer/tr_shader.c b/code/renderer/tr_shader.c index 9bb64166..6beb6410 100644 --- a/code/renderer/tr_shader.c +++ b/code/renderer/tr_shader.c @@ -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];