summaryrefslogtreecommitdiffstats
path: root/src/opengl/qopenglbuffer.cpp
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <[email protected]>2020-04-14 13:48:28 +0200
committerEskil Abrahamsen Blomfeldt <[email protected]>2020-04-17 11:50:24 +0200
commitad5aee2e34fad45d1d90bb059fa00a791d4ba3e2 (patch)
tree0df5be078e937caf0cec39b312449128300735dc /src/opengl/qopenglbuffer.cpp
parent009d583eef20e7732225cdeae32925ac676d3a47 (diff)
Get rid of QT_OPENGL_ES*
The QT_OPENGL_ES* macros are leftovers from an earlier, ad hoc configuration system, which has since been replaced by QT_CONFIG. To clean things up in Qt 6, we use the new way instead. Task-number: QTBUG-83467 Change-Id: I578dc7695bff9d5ee303b22e44f60fee22fe0c28 Reviewed-by: Lars Knoll <[email protected]>
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 3f049e5e89c..8a880662b17 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;