History

fix depth buffer issue that was messing with drawInFront, plus some small fixes to line3ds

SamGondelman committed 9 years ago

Commit 81634301 parent 0f163a63 files · +12 −8Browse files

Showing the changes to libraries/render-utils/src/RenderDeferredTask.cpp (1 of 3 files). Show all

Unified · Split

libraries/render-utils/src/RenderDeferredTask.cpp+1−1
@@ -357,7 +357,7 @@ void DrawOverlay3D::run(const RenderContextPointer& renderContext, const Inputs& · 356 unmodified lines
357357 if (_opaquePass) {
358358 gpu::doInBatch(args->_context, [&](gpu::Batch& batch){
359359 batch.enableStereo(false);
360− batch.clearFramebuffer(gpu::Framebuffer::BUFFER_DEPTH, glm::vec4(), 1.f, 0, true);
360+ batch.clearFramebuffer(gpu::Framebuffer::BUFFER_DEPTH, glm::vec4(), 1.f, 0, false);
361361 });
362362 }
363363