From bd3a1b9490d96ca00748f405037379b743744877 Mon Sep 17 00:00:00 2001 From: Mike Erwin Date: Fri, 7 Apr 2017 16:31:26 -0400 Subject: OpenGL: use PRIM instead of GL enum for immBegin Getting ready for a Gawain API change... Part of T49043 --- source/blender/editors/space_time/space_time.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/space_time') diff --git a/source/blender/editors/space_time/space_time.c b/source/blender/editors/space_time/space_time.c index 7dbf99dda90..b0280d387e7 100644 --- a/source/blender/editors/space_time/space_time.c +++ b/source/blender/editors/space_time/space_time.c @@ -102,7 +102,7 @@ static void time_draw_sfra_efra(Scene *scene, View2D *v2d) /* thin lines where the actual frames are */ immUniformThemeColorShade(TH_BACK, -60); - immBegin(GL_LINES, 4); + immBegin(PRIM_LINES, 4); immVertex2f(pos, (float)PSFRA, v2d->cur.ymin); immVertex2f(pos, (float)PSFRA, v2d->cur.ymax); @@ -326,7 +326,7 @@ static void time_draw_idblock_keyframes(View2D *v2d, ID *id, short onlysel, cons immBindBuiltinProgram(GPU_SHADER_2D_UNIFORM_COLOR); immUniformColor3ubv(color); - immBeginAtMost(GL_LINES, max_len * 2); + immBeginAtMost(PRIM_LINES, max_len * 2); for (; (ak) && (ak->cfra <= v2d->cur.xmax); ak = ak->next) -- cgit v1.2.3