Skip to content

Commit

Permalink
tr_shader: skip standalone lightmaps, they are assumed to be buggy
Browse files Browse the repository at this point in the history
Skip standalone lightmaps, they are assumed to be buggy,
see: #322
  • Loading branch information
illwieckz committed Nov 6, 2024
1 parent ddc4934 commit 6834fed
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/engine/renderer/tr_shader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5170,6 +5170,14 @@ static void FinishStages()
{
bool lightStageFound = false;

/* Skip standalone lightmaps, they are assumed to be buggy,
see: https://github.com/DaemonEngine/Daemon/issues/322 */
if ( numStages == 1 && stages[ 0 ].type == stageType_t::ST_LIGHTMAP )
{
stages[ 0 ].active = false;
numStages = 0;
}

for ( size_t s = 0; s < numStages; s++ )
{
shaderStage_t *stage = &stages[ s ];
Expand Down

0 comments on commit 6834fed

Please sign in to comment.