mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-24 14:00:03 +00:00
Merge pull request #12856 from hrydgard/vulkan-discard-negative-rects
Vulkan: Discard negative width/height framebuffer blits.
This commit is contained in:
commit
646c3b749e
@ -493,8 +493,10 @@ void FramebufferManagerVulkan::BlitFramebuffer(VirtualFramebuffer *dst, int dstX
|
||||
h -= srcY + h - src->bufferHeight;
|
||||
}
|
||||
|
||||
if (w == 0 || h == 0)
|
||||
if (w <= 0 || h <= 0) {
|
||||
// The whole rectangle got clipped.
|
||||
return;
|
||||
}
|
||||
|
||||
float srcXFactor = (float)src->renderWidth / (float)src->bufferWidth;
|
||||
float srcYFactor = (float)src->renderHeight / (float)src->bufferHeight;
|
||||
|
Loading…
Reference in New Issue
Block a user