From 15fe54a6e7572dcf8d1ad6001556fb0bf3a0645f Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Fri, 15 Dec 2006 13:46:13 +0000 Subject: [PATCH] Fix annoying bug where transparent surfaces wouldn't draw over skyboxes. Thanks to Stefan Langer a.k.a. #@ for providing the fix. --- code/renderer/tr_shader.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/renderer/tr_shader.c b/code/renderer/tr_shader.c index dac45ee4..58bb1030 100644 --- a/code/renderer/tr_shader.c +++ b/code/renderer/tr_shader.c @@ -2282,9 +2282,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();