From ecca816ea1d2b98a500cc621ff1bd5e34771f7af Mon Sep 17 00:00:00 2001 From: Eirik Aavitsland Date: Mon, 25 May 2020 12:57:04 +0200 Subject: 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 --- src/gui/rhi/qrhigles2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/rhi/qrhigles2.cpp') 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: -- cgit v1.2.3