mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-18 21:05:19 +00:00
rsx: Properly handle conversion of G8B8 and related formats
- These formats are 16-bit packed, not separate 8-bit channels. Conversion requires byteswap for them.
This commit is contained in:
parent
83d818d96f
commit
c764925b4d
2 changed files with 3 additions and 3 deletions
|
|
@ -106,7 +106,7 @@ namespace gl
|
|||
case texture::internal_format::r32f:
|
||||
return { GL_RED, GL_FLOAT, 4, true };
|
||||
case texture::internal_format::rg8:
|
||||
return { GL_RG, GL_UNSIGNED_BYTE, 1, false };
|
||||
return { GL_RG, GL_UNSIGNED_SHORT, 2, true };
|
||||
case texture::internal_format::rg16:
|
||||
return { GL_RG, GL_UNSIGNED_SHORT, 2, true };
|
||||
case texture::internal_format::rg16f:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue