summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/charts/glwidget.cpp2
-rw-r--r--src/chartsqml2/declarativeopenglrendernode.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/charts/glwidget.cpp b/src/charts/glwidget.cpp
index a712b7b4..e30a064c 100644
--- a/src/charts/glwidget.cpp
+++ b/src/charts/glwidget.cpp
@@ -167,7 +167,7 @@ void GLWidget::initializeGL()
glDisable(GL_DEPTH_TEST);
glDisable(GL_STENCIL_TEST);
-#if !defined(QT_OPENGL_ES_2)
+#if !QT_CONFIG(opengles2)
if (!QOpenGLContext::currentContext()->isOpenGLES()) {
// Make it possible to change point primitive size and use textures with them in
// the shaders. These are implicitly enabled in ES2.
diff --git a/src/chartsqml2/declarativeopenglrendernode.cpp b/src/chartsqml2/declarativeopenglrendernode.cpp
index d3df3a43..c4eed664 100644
--- a/src/chartsqml2/declarativeopenglrendernode.cpp
+++ b/src/chartsqml2/declarativeopenglrendernode.cpp
@@ -156,7 +156,7 @@ void DeclarativeOpenGLRenderNode::initGL()
m_vao.create();
QOpenGLVertexArrayObject::Binder vaoBinder(&m_vao);
-#if !defined(QT_OPENGL_ES_2)
+#if !QT_CONFIG(opengles2)
if (!QOpenGLContext::currentContext()->isOpenGLES()) {
// Make it possible to change point primitive size and use textures with them in
// the shaders. These are implicitly enabled in ES2.