diff options
author | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2015-02-04 15:23:34 +0100 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2015-02-07 20:29:27 +0000 |
commit | b8aeb4a256a6906f82255b7a60268870cca7dd00 (patch) | |
tree | 2a31ea4472f064f8b405df5c7b82f81a96872e27 /src/gui/opengl/qopengltexture.h | |
parent | 773e33af43001fbc6a047ee83e4729e6ba227998 (diff) |
Make mipmap levels and texture comparison work with GLES 3.0+
In ES-only builds (-opengl es2) we hit the QT_OPENGL_ES_2 path which
disables all this. Not ideal since all the support is present in GLES 3.0.
Therefore, stop relying on the ifdef and do runtime checks. This also needs
defining the constants manually since they are not available in gl2.h and our
own ES2 extension headers provide some of these with silly silly suffixes.
Change-Id: I8ad7f5091a371bad1e3c6dc4898342a175016274
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/gui/opengl/qopengltexture.h')
-rw-r--r-- | src/gui/opengl/qopengltexture.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/opengl/qopengltexture.h b/src/gui/opengl/qopengltexture.h index 56fdd07f2f..e0ad7f67e1 100644 --- a/src/gui/opengl/qopengltexture.h +++ b/src/gui/opengl/qopengltexture.h @@ -347,8 +347,9 @@ public: NPOTTextureRepeat = 0x00001000, Texture1D = 0x00002000, TextureComparisonOperators = 0x00004000, + TextureMipMapLevel = 0x00008000, #ifndef Q_QDOC - MaxFeatureFlag = 0x00008000 + MaxFeatureFlag = 0x00010000 #endif }; Q_DECLARE_FLAGS(Features, Feature) |