diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-06-15 15:29:18 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-06-16 09:38:36 +0200 |
commit | 538374debeaddf5b32978d9e1aca5175fa9b6a86 (patch) | |
tree | 9e6d8cb8ceffe4869e99874035d0fcda6a8b9f9e /src/quick/scenegraph/qsgrenderloop.cpp | |
parent | dd8e9f3fae84da3dd40b94122ad54d74d329163f (diff) |
Remove the GL/ANGLE-ish QQuickWindowPrivate::contextCreationFailureMessage
Not called in practice anymore, remove the corresponding condition in
the basic render loop as well.
Change-Id: I22d6091c900ce36665b9e7f6dc91cc9276528ff6
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/quick/scenegraph/qsgrenderloop.cpp')
-rw-r--r-- | src/quick/scenegraph/qsgrenderloop.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/quick/scenegraph/qsgrenderloop.cpp b/src/quick/scenegraph/qsgrenderloop.cpp index c37ab04438..53cf6fffce 100644 --- a/src/quick/scenegraph/qsgrenderloop.cpp +++ b/src/quick/scenegraph/qsgrenderloop.cpp @@ -306,15 +306,9 @@ void QSGRenderLoop::handleContextCreationFailure(QQuickWindow *window) { QString translatedMessage; QString untranslatedMessage; - if (QSGRhiSupport::instance()->isRhiEnabled()) { - QQuickWindowPrivate::rhiCreationFailureMessage(QSGRhiSupport::instance()->rhiBackendName(), - &translatedMessage, - &untranslatedMessage); - } else { - QQuickWindowPrivate::contextCreationFailureMessage(window->requestedFormat(), - &translatedMessage, - &untranslatedMessage); - } + QQuickWindowPrivate::rhiCreationFailureMessage(QSGRhiSupport::instance()->rhiBackendName(), + &translatedMessage, + &untranslatedMessage); // If there is a slot connected to the error signal, emit it and leave it to // the application to do something with the message. If nothing is connected, // show a message on our own and terminate. |