mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 06:26:49 +00:00
rsx: Surface format remapping enhancements
This commit is contained in:
parent
5b980b99a0
commit
f923eaf09a
4 changed files with 63 additions and 15 deletions
|
|
@ -144,10 +144,16 @@ void GLGSRender::update_draw_state()
|
|||
bool color_mask_r = rsx::method_registers.color_mask_r(index);
|
||||
bool color_mask_a = rsx::method_registers.color_mask_a(index);
|
||||
|
||||
if (rsx::method_registers.surface_color() == rsx::surface_color_format::g8b8)
|
||||
switch (rsx::method_registers.surface_color())
|
||||
{
|
||||
//Map GB components onto RG
|
||||
case rsx::surface_color_format::b8:
|
||||
rsx::get_b8_colormask(color_mask_r, color_mask_g, color_mask_b, color_mask_a);
|
||||
break;
|
||||
case rsx::surface_color_format::g8b8:
|
||||
rsx::get_g8b8_r8g8_colormask(color_mask_r, color_mask_g, color_mask_b, color_mask_a);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
gl_state.color_maski(index, color_mask_r, color_mask_g, color_mask_b, color_mask_a);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue