diff options
Diffstat (limited to 'examples/opengl/hellowindow/main.cpp')
-rw-r--r-- | examples/opengl/hellowindow/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/opengl/hellowindow/main.cpp b/examples/opengl/hellowindow/main.cpp index 4c5c208b14..d6802a8e20 100644 --- a/examples/opengl/hellowindow/main.cpp +++ b/examples/opengl/hellowindow/main.cpp @@ -61,7 +61,8 @@ int main(int argc, char *argv[]) QSurfaceFormat format; format.setDepthBufferSize(16); - format.setSamples(4); + if (QGuiApplication::arguments().contains(QStringLiteral("--multisample"))) + format.setSamples(4); QPoint center = QPoint(screenGeometry.center().x(), screenGeometry.top() + 80); QSize windowSize(400, 320); |