diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2019-06-04 14:16:07 +0200 |
---|---|---|
committer | Paul Lemire <paul.lemire@kdab.com> | 2019-06-05 10:34:24 +0200 |
commit | 70d56ea1658ab762849fd9f2a622dabe164036e5 (patch) | |
tree | 6fd68f5b63cfed5cb094e887b59949f6796ac079 /src/render/texture | |
parent | c8ab8c1ddd08ad668862c0b422a210e077d3a2ba (diff) |
Fix in TextureFormat for RGB10A2
Change-Id: I55258e1be54bd628572aa134b62f6c07fb90ef2c
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/texture')
-rw-r--r-- | src/render/texture/qabstracttexture.cpp | 2 | ||||
-rw-r--r-- | src/render/texture/qabstracttexture.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/render/texture/qabstracttexture.cpp b/src/render/texture/qabstracttexture.cpp index 54c84799a..e1b9cc0bb 100644 --- a/src/render/texture/qabstracttexture.cpp +++ b/src/render/texture/qabstracttexture.cpp @@ -246,6 +246,8 @@ void QAbstractTexturePrivate::setDataFunctor(const QTextureGeneratorPtr &generat \value RGBA4 GL_RGBA4 \value RGB10A2 + GL_RGB10_A2 + \value RGB10A2U GL_RGB10_A2UI \value D16 GL_DEPTH_COMPONENT16 diff --git a/src/render/texture/qabstracttexture.h b/src/render/texture/qabstracttexture.h index 5a10c620b..5a32b8487 100644 --- a/src/render/texture/qabstracttexture.h +++ b/src/render/texture/qabstracttexture.h @@ -178,7 +178,8 @@ public: R5G6B5 = 0x8D62, // GL_RGB565 RGB5A1 = 0x8057, // GL_RGB5_A1 RGBA4 = 0x8056, // GL_RGBA4 - RGB10A2 = 0x906F, // GL_RGB10_A2UI + RGB10A2 = 0x8059, // GL_RGB10_A2 + RGB10A2U = 0x906F, // GL_RGB10_A2UI // Depth formats D16 = 0x81A5, // GL_DEPTH_COMPONENT16 |