debug: print graphics driver in debug log

Might help with debugging GPU issues from users.
This commit is contained in:
itsmattkc
2020-06-17 20:50:03 +10:00
parent 1b6e9c1c79
commit 57eb039b4c
+1
View File
@@ -650,6 +650,7 @@ void MainWindow::showEvent(QShowEvent *e)
context.create();
context.makeCurrent(&surface);
const char* vendor = reinterpret_cast<const char*>(context.functions()->glGetString(GL_VENDOR));
qDebug() << "Using graphics driver:" << vendor;
if (!strcmp(vendor, "nouveau")) {
QMetaObject::invokeMethod(this, "ShowNouveauWarning", Qt::QueuedConnection);
}