Change the default major version of QGLFormat to 2.
authorJason Barron <jason.barron@digia.com>
Tue, 16 Oct 2012 12:58:47 +0000 (14:58 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 19 Oct 2012 00:43:05 +0000 (02:43 +0200)
commita61788d139470afa02202945f0723a9c8ef745ec
tree280c35b475ba31ac5b521736f76aaa1d98b6c3b7
parentc54a2dca1697974e85cc42b86fa2e1a7f50bde8e
Change the default major version of QGLFormat to 2.

This is being changed because:
- The OpenGL paint engine in Qt only supports GL2
- QML2 only supports GL2
- QSurfaceFormat has a default value of 2

Applications that want to use GL1 on a QGLWidget will have to
explicitly request this format using QGLFormat::setVersion.

Task-number: QTBUG-27589

Change-Id: Ieb283ef7d6e15a29ec28ce7e4363dbf477decaa7
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
dist/changes-5.0.0
src/opengl/qgl_p.h
tests/auto/opengl/qgl/tst_qgl.cpp