aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/scenegraph/customgeometry/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick/scenegraph/customgeometry/main.cpp')
-rw-r--r--examples/quick/scenegraph/customgeometry/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/quick/scenegraph/customgeometry/main.cpp b/examples/quick/scenegraph/customgeometry/main.cpp
index ea699c1c36..f2ec27d229 100644
--- a/examples/quick/scenegraph/customgeometry/main.cpp
+++ b/examples/quick/scenegraph/customgeometry/main.cpp
@@ -52,6 +52,9 @@ int main(int argc, char **argv)
qmlRegisterType<BezierCurve>("CustomGeometry", 1, 0, "BezierCurve");
QQuickView view;
+ QSurfaceFormat format;
+ format.setSamples(16);
+ view.setFormat(format);
view.setSource(QUrl("qrc:///scenegraph/customgeometry/main.qml"));
view.show();