mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 17:11:23 +00:00
rsx/fixup: Fix color clear logic
- Enable fast clears on ABGR formats in vulkan - Fix disabling color clears for unsupported formats in GL
This commit is contained in:
parent
7e3ece7d9f
commit
c6a9a5d5d7
@ -580,6 +580,7 @@ void GLGSRender::clear_surface(u32 arg)
|
||||
case rsx::surface_color_format::w32z32y32x32:
|
||||
{
|
||||
//Nop
|
||||
colormask = 0;
|
||||
break;
|
||||
}
|
||||
case rsx::surface_color_format::g8b8:
|
||||
|
@ -1158,7 +1158,7 @@ void VKGSRender::clear_surface(u32 mask)
|
||||
{
|
||||
rsx::get_abgr8_clear_color(clear_r, clear_g, clear_b, clear_a);
|
||||
colormask = rsx::get_abgr8_colormask(colormask);
|
||||
break;
|
||||
[[fallthrough]];
|
||||
}
|
||||
default:
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user