summaryrefslogtreecommitdiffstats
path: root/examples/qmlsurface/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qmlsurface/main.cpp')
-rw-r--r--examples/qmlsurface/main.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/qmlsurface/main.cpp b/examples/qmlsurface/main.cpp
index 428e4026..21c987b3 100644
--- a/examples/qmlsurface/main.cpp
+++ b/examples/qmlsurface/main.cpp
@@ -30,17 +30,15 @@ int main(int argc, char *argv[])
QtQuick2ApplicationViewer viewer;
+#if !defined(QT_OPENGL_ES_2)
// Enable antialiasing
QSurfaceFormat surfaceFormat;
surfaceFormat.setDepthBufferSize(24);
-#if !defined(QT_OPENGL_ES_2)
surfaceFormat.setSamples(8);
surfaceFormat.setRenderableType(QSurfaceFormat::OpenGL);
-#else
- surfaceFormat.setRenderableType(QSurfaceFormat::OpenGLES);
-#endif
surfaceFormat.setSwapBehavior(QSurfaceFormat::DoubleBuffer);
viewer.setFormat(surfaceFormat);
+#endif
#ifdef Q_OS_ANDROID
viewer.addImportPath(QString::fromLatin1("assets:/qml"));