Qt6: small API changes

A member function had a minute name change.

The SceneGraphBackend is now set via a string argument, not a magic constant.
Thankfully that appears to be backwards compatible.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2022-02-09 17:13:03 -08:00
parent c3cc3155fc
commit 41fd72c815
3 changed files with 13 additions and 1 deletions

View file

@ -204,7 +204,7 @@ exit:
surface.destroy();
if (glError) {
qWarning() << QStringLiteral(VALIDATE_GL_PREFIX "WARNING: %1. Using a software renderer!").arg(glError);
QQuickWindow::setSceneGraphBackend(QSGRendererInterface::Software);
QQuickWindow::setSceneGraphBackend("software");
}
}