1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 10:42:36 +01:00

Vulkan : Ignore clear if surface target is set to CELL_GCM_SURFACE_TARGET_NONE (#2081)

This commit is contained in:
raven02 2016-08-21 18:18:26 +08:00 committed by GitHub
parent be9cebbc8f
commit e04de77f82

View File

@ -745,6 +745,9 @@ void VKGSRender::on_exit()
void VKGSRender::clear_surface(u32 mask)
{
// Ignore clear if surface target is set to CELL_GCM_SURFACE_TARGET_NONE
if (rsx::method_registers.surface_color_target() == rsx::surface_target::none) return;
//TODO: Build clear commands into current renderpass descriptor set
if (!(mask & 0xF3)) return;
if (m_current_present_image == 0xFFFF) return;