Skip to content

Commit 3f0cd52

Browse files
committed
GL shaders: never build grid deluxe without grid lighting
1 parent 066872e commit 3f0cd52

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/engine/renderer/gl_shader.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2118,6 +2118,12 @@ bool GLCompileMacro_USE_GRID_DELUXE_MAPPING::HasConflictingMacros(size_t permuta
21182118
{
21192119
return true;
21202120
}
2121+
2122+
// grid lighting is required
2123+
if ((macro->GetType() == USE_GRID_LIGHTING) && !(permutation & macro->GetBit()))
2124+
{
2125+
return true;
2126+
}
21212127
}
21222128

21232129
return false;

0 commit comments

Comments
 (0)