Skip to content

Commit

Permalink
#5503 - SIGSEGV with r_vertexlight 1 in missionpack (patch by Serge B…
Browse files Browse the repository at this point in the history
…elyshev).
  • Loading branch information
zturtleman committed May 7, 2012
1 parent 2c5d0c1 commit 5abf7e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/renderer/tr_shader.c
Expand Up @@ -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];
Expand Down

0 comments on commit 5abf7e3

Please sign in to comment.