From 57eb039b4caffb1a4fd7610445a34f1457952494 Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Wed, 17 Jun 2020 20:50:03 +1000 Subject: [PATCH] debug: print graphics driver in debug log Might help with debugging GPU issues from users. --- app/window/mainwindow/mainwindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/app/window/mainwindow/mainwindow.cpp b/app/window/mainwindow/mainwindow.cpp index 5e61cd1d6..c3eaf7e75 100644 --- a/app/window/mainwindow/mainwindow.cpp +++ b/app/window/mainwindow/mainwindow.cpp @@ -650,6 +650,7 @@ void MainWindow::showEvent(QShowEvent *e) context.create(); context.makeCurrent(&surface); const char* vendor = reinterpret_cast(context.functions()->glGetString(GL_VENDOR)); + qDebug() << "Using graphics driver:" << vendor; if (!strcmp(vendor, "nouveau")) { QMetaObject::invokeMethod(this, "ShowNouveauWarning", Qt::QueuedConnection); }