Skip to content

Commit

Permalink
gl/vk: clear scissor_setup_invalid bit along with scissor_config_stat…
Browse files Browse the repository at this point in the history
…e_dirty bit
  • Loading branch information
scribam authored and kd-11 committed May 11, 2019
1 parent 8194c92 commit 3623f43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rpcs3/Emu/RSX/GL/GLGSRender.cpp
Expand Up @@ -672,7 +672,7 @@ void GLGSRender::set_scissor()
return;
}

m_graphics_state &= ~(rsx::pipeline_state::scissor_config_state_dirty | rsx::pipeline_state::scissor_config_state_dirty);
m_graphics_state &= ~(rsx::pipeline_state::scissor_config_state_dirty | rsx::pipeline_state::scissor_setup_invalid);

const auto clip_width = rsx::apply_resolution_scale(rsx::method_registers.surface_clip_width(), true);
const auto clip_height = rsx::apply_resolution_scale(rsx::method_registers.surface_clip_height(), true);
Expand Down
2 changes: 1 addition & 1 deletion rpcs3/Emu/RSX/VK/VKGSRender.cpp
Expand Up @@ -1929,7 +1929,7 @@ void VKGSRender::set_scissor()
return;
}

m_graphics_state &= ~(rsx::pipeline_state::scissor_config_state_dirty | rsx::pipeline_state::scissor_config_state_dirty);
m_graphics_state &= ~(rsx::pipeline_state::scissor_config_state_dirty | rsx::pipeline_state::scissor_setup_invalid);

u16 scissor_x = rsx::apply_resolution_scale(rsx::method_registers.scissor_origin_x(), false);
u16 scissor_w = rsx::apply_resolution_scale(rsx::method_registers.scissor_width(), true);
Expand Down

0 comments on commit 3623f43

Please sign in to comment.