mirror of
https://git.suyu.dev/suyu/suyu
synced 2025-08-28 06:56:29 -05:00
decoder/image: Fix incorrect G24R8 component sizes in GetComponentSize()
The components' sizes were mismatched. This corrects that.
This commit is contained in:
@@ -201,10 +201,10 @@ u32 GetComponentSize(TextureFormat format, std::size_t component) {
|
|||||||
return 0;
|
return 0;
|
||||||
case TextureFormat::G24R8:
|
case TextureFormat::G24R8:
|
||||||
if (component == 0) {
|
if (component == 0) {
|
||||||
return 8;
|
return 24;
|
||||||
}
|
}
|
||||||
if (component == 1) {
|
if (component == 1) {
|
||||||
return 24;
|
return 8;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
case TextureFormat::G8R8:
|
case TextureFormat::G8R8:
|
||||||
|
Reference in New Issue
Block a user