Picking depthbuffer fix

This commit is contained in:
viktorljung
2016-01-21 16:49:20 +01:00
parent 1c6750f5b0
commit 254caf9e5d
3 changed files with 8 additions and 4 deletions
+3 -1
View File
@@ -53,7 +53,9 @@ void PickingPass::Draw(RenderScene& scene)
GLuint ShaderHandle = m_PickingProgram->GetHandle();
m_PickingProgram->Bind();
if (scene.ClearDepth) {
glClear(GL_DEPTH_BUFFER_BIT);
}
m_Camera = scene.Camera;