vulkan: fix scissoring when SSAA > x1 in widescreen mode

This commit is contained in:
Flyinghead 2020-01-30 20:08:30 +01:00
parent d6fe3526a4
commit e017fba9c1
1 changed files with 3 additions and 2 deletions

View File

@ -146,8 +146,9 @@ void BaseDrawer::SetBaseScissor()
}
else
{
baseScissor = vk::Rect2D(vk::Offset2D(0, 0),
vk::Extent2D(screen_width, screen_height));
glm::vec4 clip_dim(screen_width, screen_height, 0, 0);
clip_dim = matrices.GetScissorMatrix() * clip_dim;
baseScissor = vk::Rect2D(vk::Offset2D(0, 0), vk::Extent2D(lroundf(clip_dim[0]), lroundf(clip_dim[1])));
}
currentScissor = { 0, 0, 0, 0 };
}