diff options
| -rw-r--r-- | src/quick/items/qquickframebufferobject.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/quick/items/qquickframebufferobject.cpp b/src/quick/items/qquickframebufferobject.cpp index 3ff6f857ab..1463d02c65 100644 --- a/src/quick/items/qquickframebufferobject.cpp +++ b/src/quick/items/qquickframebufferobject.cpp @@ -236,11 +236,8 @@ public Q_SLOTS: if (renderPending) { renderPending = false; - const bool needsWrap = QSGRendererInterface::isApiRhiBased(window->rendererInterface()->graphicsApi()); - if (needsWrap) { - window->beginExternalCommands(); - window->resetOpenGLState(); - } + window->beginExternalCommands(); + window->resetOpenGLState(); fbo->bind(); QOpenGLContext::currentContext()->functions()->glViewport(0, 0, fbo->width(), fbo->height()); @@ -250,8 +247,7 @@ public Q_SLOTS: if (msDisplayFbo) QOpenGLFramebufferObject::blitFramebuffer(msDisplayFbo, fbo); - if (needsWrap) - window->endExternalCommands(); + window->endExternalCommands(); markDirty(QSGNode::DirtyMaterial); emit textureChanged(); |
