summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMarcel Admiraal <madmiraal@users.noreply.github.com>2020-12-19 12:43:35 +0000
committerMarcel Admiraal <madmiraal@users.noreply.github.com>2020-12-19 12:59:08 +0000
commit2df9a8ccadf3e7f99d767456eedb0e559c96572c (patch)
tree9003944ed17b8c4d28d2991a4e97f8845c25e685 /drivers
parent16524d4ae1d2dc8643b97349dbbba603de77fc2b (diff)
Rename Rect2 and Rect2i clip() to intersection()
Diffstat (limited to 'drivers')
-rw-r--r--drivers/vulkan/rendering_device_vulkan.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vulkan/rendering_device_vulkan.cpp b/drivers/vulkan/rendering_device_vulkan.cpp
index 2c6ba1e230..34ad5bd18f 100644
--- a/drivers/vulkan/rendering_device_vulkan.cpp
+++ b/drivers/vulkan/rendering_device_vulkan.cpp
@@ -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;