summaryrefslogtreecommitdiff
path: root/src/render/texture
diff options
context:
space:
mode:
authorMike Krus <mike.krus@kdab.com>2020-11-20 17:09:56 +0000
committerMike Krus <mike.krus@kdab.com>2020-11-27 18:01:25 +0000
commit6fac2818ac283c1db0af51a5d8c556fa8afc61ae (patch)
tree063269f990ff1b35b5552a5e359ae88a00f6d91b /src/render/texture
parentc6716fa7f044985389038802a296bae83951b119 (diff)
downloadqt3d-6fac2818ac283c1db0af51a5d8c556fa8afc61ae.tar.gz
Handle changes in OpenGL classes
Support building against both 5.15 and 6 Change-Id: I46e15f2f898f5f2304075e290798d3d2aea47dad Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/render/texture')
-rw-r--r--src/render/texture/qtextureimagedata.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/render/texture/qtextureimagedata.h b/src/render/texture/qtextureimagedata.h
index 684a03f5a..8a7f4bb3c 100644
--- a/src/render/texture/qtextureimagedata.h
+++ b/src/render/texture/qtextureimagedata.h
@@ -41,7 +41,11 @@
#define QT3DRENDER_TEXTUREIMAGEDATA_H
#include <Qt3DRender/qt3drender_global.h>
+#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
#include <QtOpenGL/qopengltexture.h>
+#else
+#include <QtGui/qopengltexture.h>
+#endif
#include <QtGui/QImage>
#include <QtCore/QSharedPointer>