diff options
author | Eirik Aavitsland <eirik.aavitsland@qt.io> | 2020-05-25 12:57:04 +0200 |
---|---|---|
committer | Eirik Aavitsland <eirik.aavitsland@qt.io> | 2020-05-25 13:55:52 +0200 |
commit | ecca816ea1d2b98a500cc621ff1bd5e34771f7af (patch) | |
tree | 635b1806e69aa424b083d749671f8437998a41b0 /src/gui/rhi/qrhigles2.cpp | |
parent | 1381b5922237cf57f0d6907ba6980ea9f0aed75d (diff) |
Fix RHI-GL mapping of DXT3/5 compressed texture format identifiers
DXT1 is BC1, but DXT3 is BC2 and DXT5 is BC3.
Change-Id: Icb0ea4cc9efeab2453343753e9fda7f825c9b8d1
Pick-to: 5.15
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/gui/rhi/qrhigles2.cpp')
-rw-r--r-- | src/gui/rhi/qrhigles2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/rhi/qrhigles2.cpp b/src/gui/rhi/qrhigles2.cpp index d39892ac00..2e57ed1b80 100644 --- a/src/gui/rhi/qrhigles2.cpp +++ b/src/gui/rhi/qrhigles2.cpp @@ -644,9 +644,9 @@ static inline GLenum toGlCompressedTextureFormat(QRhiTexture::Format format, QRh switch (format) { case QRhiTexture::BC1: return srgb ? 0x8C4C : 0x83F0; - case QRhiTexture::BC3: + case QRhiTexture::BC2: return srgb ? 0x8C4E : 0x83F2; - case QRhiTexture::BC5: + case QRhiTexture::BC3: return srgb ? 0x8C4F : 0x83F3; case QRhiTexture::ETC2_RGB8: |