From 296e37e29bb0b364340e1813e18c460354b74acc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Trond=20Kjern=C3=A5sen?= Date: Tue, 7 Sep 2010 16:13:10 +0200 Subject: It's the GL_VERSION string that usually contains the Mesa substring. This of course differs, depending on the different backends used, but so far it seems most of the Mesa implementations have Mesa mentioned in the version string. --- tests/auto/lancelot/tst_lancelot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/auto/lancelot/tst_lancelot.cpp b/tests/auto/lancelot/tst_lancelot.cpp index 0226cc6..b2d5a7b 100644 --- a/tests/auto/lancelot/tst_lancelot.cpp +++ b/tests/auto/lancelot/tst_lancelot.cpp @@ -182,7 +182,7 @@ void tst_Lancelot::testOpenGL() if (glWidget.isValid() && glWidget.format().directRendering() && (QGLFormat::openGLVersionFlags() & QGLFormat::OpenGL_Version_2_0)) { glWidget.makeCurrent(); - if (!QByteArray((const char *)glGetString(GL_RENDERER)).contains("Mesa")) + if (!QByteArray((const char *)glGetString(GL_VERSION)).contains("Mesa")) ok = true; } if (ok) -- cgit v0.12