Showing the changes to libraries/render-utils/src/RenderDeferredTask.cpp (1 of 1 file). Show all
Unified · Split
| @@ -347,10 +347,10 @@ void DrawOverlay3D::run(const SceneContextPointer& sceneContext, const RenderCon · 346 unmodified lines | |||
| 347 | // Needs to be distinct from the other batch because using the clear call | 347 | // Needs to be distinct from the other batch because using the clear call |
| 348 | // while stereo is enabled triggers a warning | 348 | // while stereo is enabled triggers a warning |
| 349 | if (_opaquePass) { | 349 | if (_opaquePass) { |
| 350 | gpu::Batch batch; | 350 | gpu::doInBatch(args->_context, [&](gpu::Batch& batch){ |
| 351 | batch.enableStereo(false); | 351 | batch.enableStereo(false); |
| 352 | batch.clearFramebuffer(gpu::Framebuffer::BUFFER_DEPTH, glm::vec4(), 1.f, 0, true); | 352 | batch.clearFramebuffer(gpu::Framebuffer::BUFFER_DEPTH, glm::vec4(), 1.f, 0, true); |
| 353 | args->_context->render(batch); | 353 | }); |
| 354 | } | 354 | } |
| 355 | 355 | ||
| 356 | // Render the items | 356 | // Render the items |