mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 09:29:02 +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
|
// Needs to be distinct from the other batch because using the clear call
|
||||||
// while stereo is enabled triggers a warning
|
// while stereo is enabled triggers a warning
|
||||||
if (_opaquePass) {
|
if (_opaquePass) {
|
||||||
gpu::Batch batch;
|
gpu::doInBatch(args->_context, [&](gpu::Batch& batch){
|
||||||
batch.enableStereo(false);
|
batch.enableStereo(false);
|
||||||
batch.clearFramebuffer(gpu::Framebuffer::BUFFER_DEPTH, glm::vec4(), 1.f, 0, true);
|
batch.clearFramebuffer(gpu::Framebuffer::BUFFER_DEPTH, glm::vec4(), 1.f, 0, true);
|
||||||
args->_context->render(batch);
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Render the items
|
// Render the items
|
||||||
|
|
Loading…
Reference in a new issue