Skip to content

Commit

Permalink
Fix 1808
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Lejeune committed Feb 12, 2015
1 parent f815393 commit 40f21c9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/graphics/render.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,13 @@ void IrrDriver::renderScene(scene::ICameraSceneNode * const camnode, unsigned po
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
renderSolidFirstPass();
}
else
{
// We need a cleared depth buffer for some effect (eg particles depth blending)
m_rtts->getFBO(FBO_NORMAL_AND_DEPTHS).Bind();
glClear(GL_DEPTH_BUFFER_BIT);
glBindFramebuffer(GL_FRAMEBUFFER, 0);
}
PROFILER_POP_CPU_MARKER();


Expand Down

0 comments on commit 40f21c9

Please sign in to comment.