mirror of
https://github.com/JulianGro/overte.git
synced 2025-05-05 12:47:50 +02:00
Clear the frame buffer in all cases.
This commit is contained in:
parent
b59e9f9899
commit
7b56cfbeae
1 changed files with 12 additions and 12 deletions
|
@ -51,7 +51,6 @@ void DrawOverlay3D::run(const RenderContextPointer& renderContext, const Inputs&
|
|||
config->setNumDrawn((int)inItems.size());
|
||||
emit config->numDrawnChanged();
|
||||
|
||||
if (!inItems.empty()) {
|
||||
RenderArgs* args = renderContext->args;
|
||||
|
||||
// Clear the framebuffer without stereo
|
||||
|
@ -64,6 +63,7 @@ void DrawOverlay3D::run(const RenderContextPointer& renderContext, const Inputs&
|
|||
});
|
||||
}
|
||||
|
||||
if (!inItems.empty()) {
|
||||
// Render the items
|
||||
gpu::doInBatch("DrawOverlay3D::main", args->_context, [&](gpu::Batch& batch) {
|
||||
args->_batch = &batch;
|
||||
|
|
Loading…
Reference in a new issue