Rename Rect2 and Rect2i clip() to intersection()

This commit is contained in:
Marcel Admiraal 2020-12-19 12:43:35 +00:00
parent 16524d4ae1
commit 2df9a8ccad
17 changed files with 60 additions and 58 deletions

View file

@ -6378,7 +6378,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;