Ops. Cleaning depth buffer now.

This commit is contained in:
Jonathas Costa
2019-11-26 17:07:27 -05:00
parent 60813e3209
commit e2e86c12ab

View File

@@ -1180,7 +1180,7 @@ void FramebufferRenderer::performRaycasterTasks(const std::vector<RaycasterTask>
_downscaleVolumeRendering.currentDownscaleFactor = scaleDown;
updateDownscaleTextures();
}
glClear(GL_COLOR_BUFFER_BIT);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
}
else {
glBindFramebuffer(GL_FRAMEBUFFER, _gBuffers.framebuffer);