Merge pull request #44521 from madmiraal/rename-rect2-clip

Rename Rect2 and Rect2i clip() to intersection()
This commit is contained in:
Rémi Verschelde 2020-12-19 21:32:14 +01:00 committed by GitHub
commit e9d12f9e4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 60 additions and 58 deletions

View file

@ -6384,7 +6384,7 @@ void RenderingDeviceVulkan::draw_list_enable_scissor(DrawListID p_list, const Re
Rect2i rect = p_rect;
rect.position += dl->viewport.position;
rect = dl->viewport.clip(rect);
rect = dl->viewport.intersection(rect);
if (rect.get_area() == 0) {
return;