From 89e4125241c9de1ec992d336b5aa8637012ca915 Mon Sep 17 00:00:00 2001 From: Nicolas Silva Date: Wed, 28 Feb 2018 23:00:13 -0500 Subject: [PATCH] Use GL_LINE_STRIP instead of GL_LINES when drawing polylines. (cherry picked from commit 20cab06f9a90fc4907056931a06337bc18bb0238) --- drivers/gles3/rasterizer_canvas_gles3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gles3/rasterizer_canvas_gles3.cpp b/drivers/gles3/rasterizer_canvas_gles3.cpp index 96fa800206d..e1034f99f88 100644 --- a/drivers/gles3/rasterizer_canvas_gles3.cpp +++ b/drivers/gles3/rasterizer_canvas_gles3.cpp @@ -556,7 +556,7 @@ void RasterizerCanvasGLES3::_canvas_item_render_commands(Item *p_item, Item *cur } else { - _draw_generic(GL_LINES, pline->lines.size(), pline->lines.ptr(), NULL, pline->line_colors.ptr(), pline->line_colors.size() == 1); + _draw_generic(GL_LINE_STRIP, pline->lines.size(), pline->lines.ptr(), NULL, pline->line_colors.ptr(), pline->line_colors.size() == 1); } #ifdef GLES_OVER_GL