mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-04 11:43:47 +01:00
Vulkan: More scissor dimension checks. See #15207
This commit is contained in:
1 parent
05429fc34f
commit
a2f9f68565
2 files changed
+9
-2
No files matched your search
@@ -1337,6 +1337,8 @@ 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