mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-19 19:37:32 +01:00
decoder/image: Fix incorrect G24R8 component sizes in GetComponentSize()
The components' sizes were mismatched. This corrects that.
This commit is contained in:
parent
e33196d4e7
commit
b178c9a349
@ -201,10 +201,10 @@ u32 GetComponentSize(TextureFormat format, std::size_t component) {
|
||||
return 0;
|
||||
case TextureFormat::G24R8:
|
||||
if (component == 0) {
|
||||
return 8;
|
||||
return 24;
|
||||
}
|
||||
if (component == 1) {
|
||||
return 24;
|
||||
return 8;
|
||||
}
|
||||
return 0;
|
||||
case TextureFormat::G8R8:
|
||||
|
Loading…
Reference in New Issue
Block a user