mirror of
https://github.com/libretro/ppsspp.git
synced 2025-01-23 09:34:55 +00:00
Framebuffer blit: Clip src rectangle as well
This commit is contained in:
parent
7561af3735
commit
67d6e3d384
@ -468,6 +468,13 @@ void FramebufferManagerVulkan::BlitFramebuffer(VirtualFramebuffer *dst, int dstX
|
||||
if (dstY + h > dst->bufferHeight) {
|
||||
h -= dstY + h - dst->bufferHeight;
|
||||
}
|
||||
if (srcX + w > src->bufferWidth) {
|
||||
w -= srcX + w - src->bufferWidth;
|
||||
}
|
||||
if (srcY + h > src->bufferHeight) {
|
||||
h -= srcY + h - src->bufferHeight;
|
||||
}
|
||||
|
||||
if (w == 0 || h == 0)
|
||||
return;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user