From 76db2ed38d273bb6a06cb314651b4857b13c525a Mon Sep 17 00:00:00 2001 From: Sandy Carter Date: Sun, 3 Nov 2019 09:28:36 +0100 Subject: [PATCH] d3d9: Fix color ordering of RGB5A1 --- src/renderer_d3d9.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/renderer_d3d9.cpp b/src/renderer_d3d9.cpp index 3f4273a77..e638991af 100644 --- a/src/renderer_d3d9.cpp +++ b/src/renderer_d3d9.cpp @@ -3024,10 +3024,6 @@ namespace bgfx { namespace d3d9 uint32_t size = useMipSize ? mip.m_size : mipSize; switch (m_textureFormat) { - case TextureFormat::RGB5A1: - bimg::imageConvert(bits, 16, bx::packBgr5a1, mip.m_data, bx::unpackRgb5a1, size); - break; - case TextureFormat::RGBA4: bimg::imageConvert(bits, 16, bx::packBgra4, mip.m_data, bx::unpackRgba4, size); break; @@ -3089,10 +3085,6 @@ namespace bgfx { namespace d3d9 { switch (m_textureFormat) { - case TextureFormat::RGB5A1: - bimg::imageConvert(dst, 16, bx::packBgr5a1, src, bx::unpackRgb5a1, rectpitch); - break; - case TextureFormat::RGBA4: bimg::imageConvert(dst, 16, bx::packBgra4, src, bx::unpackRgba4, rectpitch); break;