diff options
author | Fredrik Höglund <fredrik@kde.org> | 2013-02-06 16:53:12 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-02-13 21:35:24 +0100 |
commit | 69701cb8c4645b4e336abfb609b1756070b8e179 (patch) | |
tree | cc49e31cae9a83c553a12af6ca87008b447a08c4 /tests | |
parent | 2ed081a88bce69a40dacf4c32fa0b3565da97f16 (diff) |
Fix the GL_CONTEXT_PROFILE_MASK check
A bit mask can have more than one bit set, so we can't use a switch
statement here. Also use the correct enums, and make sure that the
profile is set to QSurfaceFormat::NoProfile when the OpenGL version
is less than 3.2.
Change-Id: I6d2c4e35d4fb3d87fd47c9724cb415f8619a7b95
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions