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/windowmanager/intern/wm_operators.c
parentc41e8b8f6f38b9f5a037e11b83b49c4481256716 (diff)
GPU: State: Replace GL_BLEND by GPU_blend
Diffstat (limited to 'source/blender/windowmanager/intern/wm_operators.c')
-rw-r--r--source/blender/windowmanager/intern/wm_operators.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c
index 6f33bd62bcd..0b306406054 100644
--- a/source/blender/windowmanager/intern/wm_operators.c
+++ b/source/blender/windowmanager/intern/wm_operators.c
@@ -2159,7 +2159,7 @@ static void radial_control_paint_cursor(bContext *UNUSED(C), int x, int y, void
y = rc->initial_mouse[1];
GPU_matrix_translate_2f((float)x, (float)y);
- glEnable(GL_BLEND);
+ GPU_blend(true);
GPU_line_smooth(true);
/* apply zoom if available */
@@ -2220,7 +2220,7 @@ static void radial_control_paint_cursor(bContext *UNUSED(C), int x, int y, void
BLF_disable(fontid, BLF_SHADOW);
- glDisable(GL_BLEND);
+ GPU_blend(false);
GPU_line_smooth(false);
}