Fix annoying bug where transparent surfaces wouldn't draw over skyboxes. Thanks to Stefan Langer a.k.a. #@ for providing the fix.

This commit is contained in:
Thilo Schulz 2006-12-15 13:46:13 +00:00
parent f03d8857e8
commit 15fe54a6e7
1 changed files with 1 additions and 2 deletions

View File

@ -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();