diff options
| author | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2015-10-20 12:54:48 +0200 |
|---|---|---|
| committer | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2015-10-20 13:11:11 +0000 |
| commit | 101a6bda4573237f0a31b1b947ea1af0fa7fb37c (patch) | |
| tree | eef69b1551df74f9a270f4f71e22d2c5a23964cc /qmake/generators/unix/unixmake.cpp | |
| parent | f35797991ea450478f4703399a551ca85bde053d (diff) | |
Fix GL_VERSION parsing when using WGL
Unlike other platforms and the EGL path, this one tries to parse
GL_VERSION on its own. Unfortunately it breaks for certain version
strings: we cannot assume more than major.minor in the beginning
and so looking for a second dot is wrong.
For example, "2.1 Mesa 7.11-devel" is parsed as major "2", minor
"1 Mesa 7" (result in 0), leading to a version of 2.0 instead of 2.1.
To overcome this, use the common helper function in
QPlatformOpenGLContext.
Change-Id: I460f4276a3a06659b542e0c076ddc1ada3122907
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Diffstat (limited to 'qmake/generators/unix/unixmake.cpp')
0 files changed, 0 insertions, 0 deletions
