diff options
author | Sean Harmer <sean.harmer@kdab.com> | 2012-09-19 12:07:46 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-09-19 16:16:13 +0200 |
commit | 7aaf293b3573e6c6f2dd22ed91095b61fe342e58 (patch) | |
tree | 35bd12806247f10d5d205aa88120978689e42046 /src/opengl/qgl.cpp | |
parent | d95d5bfd0732b9739953512ee22f1d3281990c72 (diff) |
OpenGL: Request latest GL version when using QGLTemporaryContext
This is necessary so that QGLFormat::openGLVersionFlags() returns the
complete set of versions. Without this patch the temporary context
ends up obtaining an OpenGL 2.x context as the QPA plugins now prefer
to use the ARB {wgl,glx}CreateContextAttribsARB function which creates
contexts of the specified version (2.0 for a default QSurfaceFormat).
Change-Id: I2c3e02c9d7b77d4ee0484f9e8786f41675f8a439
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Diffstat (limited to 'src/opengl/qgl.cpp')
0 files changed, 0 insertions, 0 deletions