Only set graphics API when using Qt6
This commit is contained in:
committed by
James Graham
parent
774121ea8c
commit
8359c1fe90
@@ -147,8 +147,10 @@ int main(int argc, char *argv[])
|
||||
#ifdef HAVE_WEBVIEW
|
||||
QtWebView::initialize();
|
||||
QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
|
||||
#if QT_VERSION > QT_VERSION_CHECK(6, 0, 0)
|
||||
QQuickWindow::setGraphicsApi(QSGRendererInterface::OpenGLRhi);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef Q_OS_ANDROID
|
||||
QGuiApplication app(argc, argv);
|
||||
|
||||
Reference in New Issue
Block a user