mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 18:35:04 +02:00
Remove last direct use of gpu::Context::render()
This commit is contained in:
parent
bb6abf11d3
commit
fa20898285
1 changed files with 4 additions and 4 deletions
|
@ -347,10 +347,10 @@ void DrawOverlay3D::run(const SceneContextPointer& sceneContext, const RenderCon
|
|||
// Needs to be distinct from the other batch because using the clear call
|
||||
// while stereo is enabled triggers a warning
|
||||
if (_opaquePass) {
|
||||
gpu::Batch batch;
|
||||
batch.enableStereo(false);
|
||||
batch.clearFramebuffer(gpu::Framebuffer::BUFFER_DEPTH, glm::vec4(), 1.f, 0, true);
|
||||
args->_context->render(batch);
|
||||
gpu::doInBatch(args->_context, [&](gpu::Batch& batch){
|
||||
batch.enableStereo(false);
|
||||
batch.clearFramebuffer(gpu::Framebuffer::BUFFER_DEPTH, glm::vec4(), 1.f, 0, true);
|
||||
});
|
||||
}
|
||||
|
||||
// Render the items
|
||||
|
|
Loading…
Reference in a new issue