Skip to content

Commit

Permalink
Merge pull request #38734 from lawnjelly/polyline_bug
Browse files Browse the repository at this point in the history
GLES2 polyline drawn as GL_LINE_STRIP to match GLES3
  • Loading branch information
akien-mga authored May 14, 2020
2 parents e42318e + 8005175 commit f5a3d34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gles2/rasterizer_canvas_gles2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1526,7 +1526,7 @@ void RasterizerCanvasGLES2::render_batches(Item::Command *const *p_commands, Ite
offset += to_draw * 2;
}
} 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
Expand Down

0 comments on commit f5a3d34

Please sign in to comment.