Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Erwin <significant.bit@gmail.com>2017-04-07 23:31:26 +0300
committerMike Erwin <significant.bit@gmail.com>2017-04-07 23:31:26 +0300
commitbd3a1b9490d96ca00748f405037379b743744877 (patch)
treeaed8ff42fb92cc78de6729cd6d90c3c5ee9ad8ca /source/blender/editors/space_image/image_draw.c
parentc1dc078840541bd64f95fdeca52267c75a061e04 (diff)
OpenGL: use PRIM instead of GL enum for immBegin
Getting ready for a Gawain API change... Part of T49043
Diffstat (limited to 'source/blender/editors/space_image/image_draw.c')
-rw-r--r--source/blender/editors/space_image/image_draw.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/editors/space_image/image_draw.c b/source/blender/editors/space_image/image_draw.c
index 139097979c4..554ec573a9c 100644
--- a/source/blender/editors/space_image/image_draw.c
+++ b/source/blender/editors/space_image/image_draw.c
@@ -689,14 +689,14 @@ void draw_image_sample_line(SpaceImage *sima)
unsigned int pos = VertexFormat_add_attrib(immVertexFormat(), "pos", COMP_F32, 2, KEEP_FLOAT);
immBindBuiltinProgram(GPU_SHADER_2D_UNIFORM_COLOR);
- immBegin(GL_LINES, 2);
+ immBegin(PRIM_LINES, 2);
immUniformColor3ub(0, 0, 0);
immVertex2fv(pos, hist->co[0]);
immVertex2fv(pos, hist->co[1]);
immEnd();
setlinestyle(1);
- immBegin(GL_LINES, 2);
+ immBegin(PRIM_LINES, 2);
immUniformColor3ub(255, 255, 255);
immVertex2fv(pos, hist->co[0]);
immVertex2fv(pos, hist->co[1]);
@@ -704,7 +704,6 @@ void draw_image_sample_line(SpaceImage *sima)
setlinestyle(0);
immUnbindProgram();
-
}
}