OpenGL: Make use of the requested version and profile in QGLWidget
authorSean Harmer <sean.harmer@kdab.com>
Wed, 19 Sep 2012 13:09:16 +0000 (14:09 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 19 Sep 2012 14:16:38 +0000 (16:16 +0200)
commit77fc6d30f1bd4bdd8894dd98e12373211241a091
tree3e150a49c4b79254b1cecf334ea68e115a79b11f
parentc45005a77890a14d20498d3a829f70ce209f3742
OpenGL: Make use of the requested version and profile in QGLWidget

When instatiating a QGLWidget in Qt5 at present it ignores the version
and profile information in the QGLFormat meaning that we always end up
with an OpenGL 2.x profile rather than what we asked for. This commit
properly takes the version and profile into account.

Change-Id: I097f10e397c23f5d97c5fcd8d5354667da286896
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
src/opengl/qgl_qpa.cpp