diff options
author | Rodrigo Locatti <reinuseslisp@airmail.cc> | 2020-11-24 08:38:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-24 08:38:03 +0100 |
commit | fbda5e9ec93fad65c86afd2c20695100651cd6e6 (patch) | |
tree | 508dd8fbbe5576999a4f6ede7d771a95eeef24a5 | |
parent | Merge pull request #4942 from lioncash/system (diff) | |
parent | decode/image: Fix typo in assert in GetComponentSize() (diff) | |
download | yuzu-fbda5e9ec93fad65c86afd2c20695100651cd6e6.tar yuzu-fbda5e9ec93fad65c86afd2c20695100651cd6e6.tar.gz yuzu-fbda5e9ec93fad65c86afd2c20695100651cd6e6.tar.bz2 yuzu-fbda5e9ec93fad65c86afd2c20695100651cd6e6.tar.lz yuzu-fbda5e9ec93fad65c86afd2c20695100651cd6e6.tar.xz yuzu-fbda5e9ec93fad65c86afd2c20695100651cd6e6.tar.zst yuzu-fbda5e9ec93fad65c86afd2c20695100651cd6e6.zip |
-rw-r--r-- | src/video_core/shader/decode/image.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/shader/decode/image.cpp b/src/video_core/shader/decode/image.cpp index 618d309d2..1ed4212ee 100644 --- a/src/video_core/shader/decode/image.cpp +++ b/src/video_core/shader/decode/image.cpp @@ -212,10 +212,10 @@ u32 GetComponentSize(TextureFormat format, std::size_t component) { return 0; case TextureFormat::R8G24: if (component == 0) { - return 8; + return 24; } if (component == 1) { - return 24; + return 8; } return 0; case TextureFormat::R8G8: |