diff options
| author | Tilka <tilkax@gmail.com> | 2024-10-19 19:36:19 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-19 19:36:19 +0100 |
| commit | fed8220c39f58d7e50f6abf15002a46da77f45af (patch) | |
| tree | 7e05b39b94761c371f32022c5f4e88b056221f37 /Source/Core/VideoCommon/TextureDecoder_Generic.cpp | |
| parent | 88cf25e9156e9bf47e6bb25f82baf362ec41d256 (diff) | |
| parent | dbaa844e576acb48168d36d81fb4ca1e4a96d0b2 (diff) | |
Merge pull request #12712 from Dentomologist/remove_defined_out_code
Remove defined-out code
Diffstat (limited to 'Source/Core/VideoCommon/TextureDecoder_Generic.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/TextureDecoder_Generic.cpp | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/Source/Core/VideoCommon/TextureDecoder_Generic.cpp b/Source/Core/VideoCommon/TextureDecoder_Generic.cpp index 46a2252b7d..8b70faee50 100644 --- a/Source/Core/VideoCommon/TextureDecoder_Generic.cpp +++ b/Source/Core/VideoCommon/TextureDecoder_Generic.cpp @@ -115,30 +115,14 @@ static inline void DecodeBytes_IA4(u32* dst, const u8* src) static inline void DecodeBytes_RGB5A3(u32* dst, const u16* src) { -#if 0 for (int x = 0; x < 4; x++) dst[x] = DecodePixel_RGB5A3(Common::swap16(src[x])); -#else - dst[0] = DecodePixel_RGB5A3(Common::swap16(src[0])); - dst[1] = DecodePixel_RGB5A3(Common::swap16(src[1])); - dst[2] = DecodePixel_RGB5A3(Common::swap16(src[2])); - dst[3] = DecodePixel_RGB5A3(Common::swap16(src[3])); -#endif } static inline void DecodeBytes_RGBA8(u32* dst, const u16* src, const u16* src2) { -#if 0 for (int x = 0; x < 4; x++) - { - dst[x] = ((src[x] & 0xFF) << 24) | ((src[x] & 0xFF00)>>8) | (src2[x] << 8); - } -#else - dst[0] = ((src[0] & 0xFF) << 24) | ((src[0] & 0xFF00) >> 8) | (src2[0] << 8); - dst[1] = ((src[1] & 0xFF) << 24) | ((src[1] & 0xFF00) >> 8) | (src2[1] << 8); - dst[2] = ((src[2] & 0xFF) << 24) | ((src[2] & 0xFF00) >> 8) | (src2[2] << 8); - dst[3] = ((src[3] & 0xFF) << 24) | ((src[3] & 0xFF00) >> 8) | (src2[3] << 8); -#endif + dst[x] = ((src[x] & 0xFF) << 24) | ((src[x] & 0xFF00) >> 8) | (src2[x] << 8); } static void DecodeDXTBlock(u32* dst, const DXTBlock* src, int pitch) |
