summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/advancedcustommaterial/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qt3d/advancedcustommaterial/main.cpp')
-rw-r--r--examples/qt3d/advancedcustommaterial/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/qt3d/advancedcustommaterial/main.cpp b/examples/qt3d/advancedcustommaterial/main.cpp
index 631e26e43..eef254063 100644
--- a/examples/qt3d/advancedcustommaterial/main.cpp
+++ b/examples/qt3d/advancedcustommaterial/main.cpp
@@ -55,7 +55,7 @@
void setSurfaceFormat()
{
QSurfaceFormat format;
-#ifdef QT_OPENGL_ES_2
+#if QT_CONFIG(opengles2)
format.setRenderableType(QSurfaceFormat::OpenGLES);
#else
if (QOpenGLContext::openGLModuleType() == QOpenGLContext::LibGL) {