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
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 warning348 // 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 items356 // Render the items