We only uses one depth buffer now

This commit is contained in:
Teejoon
2016-02-29 11:44:29 +01:00
parent 9cbc6f7755
commit df7ace6626
16 changed files with 69 additions and 67 deletions
+2 -2
View File
@@ -82,11 +82,11 @@ void DrawBloomPass::ClearBuffer()
GLERROR("PRE");
m_GaussianFrameBuffer_horiz.Bind();
glClearColor(0.f, 0.f, 0.f, 0.f);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glClear(GL_COLOR_BUFFER_BIT);
m_GaussianFrameBuffer_horiz.Unbind();
m_GaussianFrameBuffer_vert.Bind();
glClearColor(0.f, 0.f, 0.f, 0.f);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glClear(GL_COLOR_BUFFER_BIT);
m_GaussianFrameBuffer_vert.Unbind();
GLERROR("END");
}