diff options
author | Mike Krus <mike.krus@kdab.com> | 2020-11-20 17:09:56 +0000 |
---|---|---|
committer | Mike Krus <mike.krus@kdab.com> | 2020-11-27 18:01:25 +0000 |
commit | 6fac2818ac283c1db0af51a5d8c556fa8afc61ae (patch) | |
tree | 063269f990ff1b35b5552a5e359ae88a00f6d91b /src/render/texture | |
parent | c6716fa7f044985389038802a296bae83951b119 (diff) | |
download | qt3d-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.h | 4 |
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> |