diff options
author | Tomi Korpipää <tomi.korpipaa@theqtcompany.com> | 2015-06-29 07:30:09 +0300 |
---|---|---|
committer | Tomi Korpipää <tomi.korpipaa@theqtcompany.com> | 2015-06-29 06:29:27 +0000 |
commit | 1148887340389dad57bab066b06d2d0e9eacceae (patch) | |
tree | 5a933830ff5f915e92ea0c8092fd23f0402a0aaa /examples/qt3d/planets-qml/main.cpp | |
parent | 56aaa976625a2cd337ccf24b29ae563dc8292778 (diff) |
Fixed planets-qml after 5.5.0 -> 5.5 merge
Change-Id: Ib4bf6b5b90b633903037084daeb70799da23f30b
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'examples/qt3d/planets-qml/main.cpp')
-rw-r--r-- | examples/qt3d/planets-qml/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/qt3d/planets-qml/main.cpp b/examples/qt3d/planets-qml/main.cpp index 02c43181f..9643e0054 100644 --- a/examples/qt3d/planets-qml/main.cpp +++ b/examples/qt3d/planets-qml/main.cpp @@ -44,7 +44,9 @@ int main(int argc, char **argv) QSurfaceFormat format; if (QOpenGLContext::openGLModuleType() == QOpenGLContext::LibGL) { +#ifdef Q_OS_OSX format.setVersion(3, 2); +#endif format.setProfile(QSurfaceFormat::CoreProfile); } format.setDepthBufferSize(24); |