vulkan: don't create empty copy regions
This commit is contained in:
parent
d527e17d58
commit
a61c98aaec
1 changed files with 3 additions and 0 deletions
|
|
@ -2304,6 +2304,9 @@ where
|
||||||
}
|
}
|
||||||
let x2 = x2.min(fb.width as i32);
|
let x2 = x2.min(fb.width as i32);
|
||||||
let y2 = y2.min(fb.height as i32);
|
let y2 = y2.min(fb.height as i32);
|
||||||
|
if x1 == x2 || y1 == y2 {
|
||||||
|
return None;
|
||||||
|
}
|
||||||
Some([x1, y1, x2, y2])
|
Some([x1, y1, x2, y2])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue