diff options
author | Trond Kjernåsen <trond.kjernasen@nokia.com> | 2010-09-07 16:13:10 +0200 |
---|---|---|
committer | Trond Kjernåsen <trond.kjernasen@nokia.com> | 2010-09-07 16:13:10 +0200 |
commit | 296e37e29bb0b364340e1813e18c460354b74acc (patch) | |
tree | 3cddcff3bbe265b0a68191f029c3e01e80fc80e3 /tests/auto/lancelot | |
parent | a59566262ebd226a901172fc06c7bcb9023d5a33 (diff) |
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.
Diffstat (limited to 'tests/auto/lancelot')
-rw-r--r-- | tests/auto/lancelot/tst_lancelot.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/lancelot/tst_lancelot.cpp b/tests/auto/lancelot/tst_lancelot.cpp index 0226cc65ff..b2d5a7b747 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) |