mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-20 19:57:50 +00:00
decoder/image: Fix incorrect G24R8 component sizes in GetComponentSize()
The components' sizes were mismatched. This corrects that.
This commit is contained in:
parent
d06795c08a
commit
b4b58a359b
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue