Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed|Renderer|FX: Bloom leaking from UI layer
  • Loading branch information
skyjake committed Mar 30, 2014
1 parent ba33c2a commit 91f36fc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions doomsday/client/src/render/viewports.cpp
Expand Up @@ -980,6 +980,17 @@ static void clearViewPorts()
{
GLbitfield bits = GL_DEPTH_BUFFER_BIT;

if(Con_GetInteger("rend-bloom"))
{
/*
* Parts of the previous frame might leak in the bloom unless we clear the color
* buffer. Not doing this would result in very bright HOMs in map holes and game
* UI elements glowing in the frame (UI elements are normally on a separate layer
* and should not affect bloom).
*/
bits |= GL_COLOR_BUFFER_BIT;
}

if(!devRendSkyMode)
bits |= GL_STENCIL_BUFFER_BIT;

Expand Down

0 comments on commit 91f36fc

Please sign in to comment.