summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-08-28 23:37:42 +0200
committerRémi Verschelde <rverschelde@gmail.com>2017-08-28 23:37:42 +0200
commit9450179ff0faf39cc0360bc84d4e44f93d53c014 (patch)
treeda97bb781296e402b2607fc802d4c9fc698be3a5 /servers
parent456bee46de68fa5a9dd577cd0fcc4bcb9bf00569 (diff)
Disable antialiasing for CanvasItem triangle arrays
Fixes #10461 and supersedes #10645 as suggested by @bruvzg.
Diffstat (limited to 'servers')
-rw-r--r--servers/visual/visual_server_canvas.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/servers/visual/visual_server_canvas.cpp b/servers/visual/visual_server_canvas.cpp
index 37f7b2b523..25724981eb 100644
--- a/servers/visual/visual_server_canvas.cpp
+++ b/servers/visual/visual_server_canvas.cpp
@@ -698,6 +698,7 @@ void VisualServerCanvas::canvas_item_add_triangle_array(RID p_item, const Vector
polygon->colors = p_colors;
polygon->indices = indices;
polygon->count = count;
+ polygon->antialiased = false;
canvas_item->rect_dirty = true;
canvas_item->commands.push_back(polygon);