mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-12-13 13:40:56 +00:00
#5503 - SIGSEGV with r_vertexlight 1 in missionpack (patch by Serge Belyshev).
This commit is contained in:
parent
2c5d0c1e3a
commit
5abf7e3d84
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue