diff options
Diffstat (limited to 'examples/3dstudioruntime2/simpleqml/main.cpp')
-rw-r--r-- | examples/3dstudioruntime2/simpleqml/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/3dstudioruntime2/simpleqml/main.cpp b/examples/3dstudioruntime2/simpleqml/main.cpp index 897b59a..a0a3de3 100644 --- a/examples/3dstudioruntime2/simpleqml/main.cpp +++ b/examples/3dstudioruntime2/simpleqml/main.cpp @@ -56,6 +56,10 @@ int main(int argc, char *argv[]) { qputenv("QSG_INFO", "1"); QApplication app(argc, argv); + + // Use the ideal format (i.e. OpenGL version and profile) recommended by + // the Qt 3D Studio runtime. Without this the format set on the QQuickView + // would be used instead. QSurfaceFormat::setDefaultFormat(Q3DS::surfaceFormat()); QQuickView viewer; |