Vulkan: The validation layers don't like zero-size blits.
This commit is contained in:
parent
944cc94630
commit
4f4eb6f024
2 changed files with 7 additions and 1 deletions
|
@ -2081,7 +2081,7 @@ void FramebufferManagerCommon::DownloadFramebufferForClut(u32 fb_address, u32 lo
|
|||
FlushBeforeCopy();
|
||||
|
||||
// No need to download if we already have it.
|
||||
if (!vfb->memoryUpdated && vfb->clutUpdatedBytes < loadBytes) {
|
||||
if (w > 0 && h > 0 && !vfb->memoryUpdated && vfb->clutUpdatedBytes < loadBytes) {
|
||||
// We intentionally don't call OptimizeDownloadRange() here - we don't want to over download.
|
||||
// CLUT framebuffers are often incorrectly estimated in size.
|
||||
if (x == 0 && y == 0 && w == vfb->width && h == vfb->height) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue