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/space_outliner/outliner_draw.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/space_outliner/outliner_draw.c')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_outliner/outliner_draw.c b/source/blender/editors/space_outliner/outliner_draw.c index cfe6e6a2bb5..92193e93fbe 100644 --- a/source/blender/editors/space_outliner/outliner_draw.c +++ b/source/blender/editors/space_outliner/outliner_draw.c @@ -1799,7 +1799,7 @@ static void outliner_back(ARegion *ar) int tot = (int)floor(ystart - ar->v2d.cur.ymin + 2 * UI_UNIT_Y) / (2 * UI_UNIT_Y); if (tot > 0) { - immBegin(GL_QUADS, 4 * tot); + immBegin(PRIM_QUADS_XXX, 4 * tot); while (tot--) { y1 -= 2 * UI_UNIT_Y; y2 = y1 + UI_UNIT_Y; |