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>
This commit is contained in:
Eirik Aavitsland 2020-05-25 12:57:04 +02:00
parent 1381b59222
commit ecca816ea1

View File

@ -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: