summaryrefslogtreecommitdiffstats
path: root/src/opengl/qopenglbuffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/opengl/qopenglbuffer.cpp')
-rw-r--r--src/opengl/qopenglbuffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/qopenglbuffer.cpp b/src/opengl/qopenglbuffer.cpp
index 3f049e5e89..8a880662b1 100644
--- a/src/opengl/qopenglbuffer.cpp
+++ b/src/opengl/qopenglbuffer.cpp
@@ -341,7 +341,7 @@ void QOpenGLBuffer::destroy()
*/
bool QOpenGLBuffer::read(int offset, void *data, int count)
{
-#if !defined(QT_OPENGL_ES)
+#if !QT_CONFIG(opengles2)
Q_D(QOpenGLBuffer);
if (!d->funcs->hasOpenGLFeature(QOpenGLFunctions::Buffers) || !d->guard->id())
return false;