summaryrefslogtreecommitdiff
path: root/src/renderer/tr_shader.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderer/tr_shader.c')
-rw-r--r--src/renderer/tr_shader.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/renderer/tr_shader.c b/src/renderer/tr_shader.c
index 0e4504ef..10223a5c 100644
--- a/src/renderer/tr_shader.c
+++ b/src/renderer/tr_shader.c
@@ -2283,9 +2283,8 @@ static shader_t *FinishShader( void ) {
shader.numUnfoggedPasses = stage;
// fogonly shaders don't have any normal passes
- if ( stage == 0 ) {
+ if (stage == 0 && !shader.isSky)
shader.sort = SS_FOG;
- }
// determine which stage iterator function is appropriate
ComputeStageIteratorFunc();