History

Remove last direct use of gpu::Context::render()

Bradley Austin Davis committed 10 years ago

Commit fa208981 parent bb6abf11 file · +4 −4Browse files

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

Unified · Split

libraries/render-utils/src/RenderDeferredTask.cpp+4−4
@@ -347,10 +347,10 @@ void DrawOverlay3D::run(const SceneContextPointer& sceneContext, const RenderCon · 346 unmodified lines
347347 // Needs to be distinct from the other batch because using the clear call
348348 // while stereo is enabled triggers a warning
349349 if (_opaquePass) {
350− gpu::Batch batch;
351− batch.enableStereo(false);
352− batch.clearFramebuffer(gpu::Framebuffer::BUFFER_DEPTH, glm::vec4(), 1.f, 0, true);
353− args->_context->render(batch);
350+ gpu::doInBatch(args->_context, [&](gpu::Batch& batch){
351+ batch.enableStereo(false);
352+ batch.clearFramebuffer(gpu::Framebuffer::BUFFER_DEPTH, glm::vec4(), 1.f, 0, true);
353+ });
354354 }
355355
356356 // Render the items