mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-04 03:33:44 +01:00
Vulkan is strict about scissor rect, so let's clamp centrally.
Better than spreading the logic all over. Fixes #15207
This commit is contained in:
1 parent
dbfa4e6830
commit
45308a16c0
8 files changed
+48
-39
No files matched your search
@@ -1337,8 +1337,6 @@ void VulkanQueueRunner::PerformRenderPass(const VKRStep &step, VkCommandBuffer c
|
||||
} else {
|
||||
// Rendering to backbuffer. Might need to rotate.
|
||||
const VkRect2D &rc = c.scissor.scissor;
|
||||
_dbg_assert_(rc.offset.x >= 0);
|
||||
_dbg_assert_(rc.offset.y >= 0);
|
||||
DisplayRect<int> rotated_rc{ rc.offset.x, rc.offset.y, (int)rc.extent.width, (int)rc.extent.height };
|
||||
RotateRectToDisplay(rotated_rc, vulkan_->GetBackbufferWidth(), vulkan_->GetBackbufferHeight());
|
||||
_dbg_assert_(rotated_rc.x >= 0);
|
||||
|
||||
Reference in new issue
Block a user