diff options
author | Mike Erwin <significant.bit@gmail.com> | 2017-04-07 22:03:24 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2017-04-07 22:03:24 +0300 |
commit | 7a75581d92ad1df005f1da23a84a3d0aea20188e (patch) | |
tree | 3698c046f5f7c32e67c039e47aa7df933f97cf96 /source/blender/editors/gpencil/drawgpencil.c | |
parent | d6ae3789a1462931f29b523badb5f2173aa83902 (diff) |
OpenGL: transition away from GL_QUADS
Single quads are drawn as a TRIANGLE_FAN, with 4 verts in the same order.
Multiple quads now use PRIM_QUADS_XXX and will need further work. Only 8 places still use this.
Part of T49043
Diffstat (limited to 'source/blender/editors/gpencil/drawgpencil.c')
-rw-r--r-- | source/blender/editors/gpencil/drawgpencil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/drawgpencil.c b/source/blender/editors/gpencil/drawgpencil.c index 229aecc21ae..7e33de7b271 100644 --- a/source/blender/editors/gpencil/drawgpencil.c +++ b/source/blender/editors/gpencil/drawgpencil.c @@ -740,7 +740,7 @@ static void gp_draw_stroke_2d(const bGPDspoint *points, int totpoints, short thi unsigned int color = VertexFormat_add_attrib(format, "color", COMP_U8, 4, NORMALIZE_INT_TO_FLOAT); immBindBuiltinProgram(GPU_SHADER_2D_FLAT_COLOR); - immBegin(GL_QUADS, (totpoints - 2) * 4 + 12); + immBegin(PRIM_QUADS_XXX, (totpoints - 2) * 4 + 12); for (i = 0, pt1 = points, pt2 = points + 1; i < (totpoints - 1); i++, pt1++, pt2++) { float s0[2], s1[2]; /* segment 'center' points */ |