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:
kd-11 2020-06-16 21:24:05 +03:00 committed by kd-11
parent 83d818d96f
commit c764925b4d
2 changed files with 3 additions and 3 deletions

View file

@ -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: