From 08571963a062710827340ca31e908e7e62e4b7ef Mon Sep 17 00:00:00 2001 From: Richard Allen Date: Thu, 4 Oct 2012 14:19:24 +0000 Subject: [PATCH] IOQ3 commit 2248 --- reaction/code/renderer/tr_shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reaction/code/renderer/tr_shader.c b/reaction/code/renderer/tr_shader.c index 9bb64166..6beb6410 100644 --- a/reaction/code/renderer/tr_shader.c +++ b/reaction/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];