summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodrigo Locatti <reinuseslisp@airmail.cc>2020-11-24 08:38:03 +0100
committerGitHub <noreply@github.com>2020-11-24 08:38:03 +0100
commitfbda5e9ec93fad65c86afd2c20695100651cd6e6 (patch)
tree508dd8fbbe5576999a4f6ede7d771a95eeef24a5
parentMerge pull request #4942 from lioncash/system (diff)
parentdecode/image: Fix typo in assert in GetComponentSize() (diff)
downloadyuzu-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
Diffstat (limited to '')
-rw-r--r--src/video_core/shader/decode/image.cpp4
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: