Skip to content

Commit

Permalink
Fixed|Renderer: Sky fog
Browse files Browse the repository at this point in the history
Fog was no longer being enabled when rendering the sky sphere/models,
likely due to a refactoring oversight.
  • Loading branch information
skyjake committed Apr 9, 2013
1 parent 1cda2c2 commit f2e61a2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doomsday/client/src/render/sky.cpp
Expand Up @@ -999,6 +999,8 @@ void Sky_Render()
// Is there a sky to be rendered?
if(!Sky_FirstActiveLayer()) return;

if(usingFog) glEnable(GL_FOG);

// If sky models have been inited, they will be used.
if(!skyModelsInited || alwaysDrawSphere)
{
Expand Down Expand Up @@ -1042,6 +1044,8 @@ void Sky_Render()
glDepthMask(GL_TRUE);
glEnable(GL_DEPTH_TEST);
}

if(usingFog) glDisable(GL_FOG);
}

/// @note A CVar callback.
Expand Down

0 comments on commit f2e61a2

Please sign in to comment.