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:
authorClément Foucault <foucault.clem@gmail.com>2019-03-25 22:26:52 +0300
committerClément Foucault <foucault.clem@gmail.com>2019-03-25 22:26:52 +0300
commitc602ec74fdd20c17c9ca9c7eb59c048443efc2ce (patch)
treeaf55cc2a2da7c385db5a42735e2bbbdea7953e1f /source/blender/draw
parentc41e8b8f6f38b9f5a037e11b83b49c4481256716 (diff)
GPU: State: Replace GL_BLEND by GPU_blend
Diffstat (limited to 'source/blender/draw')
-rw-r--r--source/blender/draw/intern/draw_view.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/draw/intern/draw_view.c b/source/blender/draw/intern/draw_view.c
index c578625de05..71bf37b4e7a 100644
--- a/source/blender/draw/intern/draw_view.c
+++ b/source/blender/draw/intern/draw_view.c
@@ -215,7 +215,7 @@ void DRW_draw_cursor(void)
/* Draw nice Anti Aliased cursor. */
GPU_line_width(1.0f);
- glEnable(GL_BLEND);
+ GPU_blend(true);
GPU_line_smooth(true);
float eps = 1e-5f;
@@ -277,7 +277,7 @@ void DRW_draw_cursor(void)
GPU_batch_draw(cursor_batch);
- glDisable(GL_BLEND);
+ GPU_blend(false);
GPU_line_smooth(false);
GPU_matrix_pop();
GPU_matrix_projection_set(original_proj);