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-24 01:54:01 +0300
committerClément Foucault <foucault.clem@gmail.com>2019-03-24 01:54:01 +0300
commit72c323d50c290a91414a3363647f45b5444c4e66 (patch)
treed9257b5f01f2b4dbdb62651bc2f4539f415848b6 /source/blender/windowmanager
parent53cd37d5102bc68da686e742b73aff023a4880b4 (diff)
GPU: State: Replace GL_LINE_SMOOTH by GPU_line_smooth
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_operators.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c
index 3db5ff4d848..8221dfdbaae 100644
--- a/source/blender/windowmanager/intern/wm_operators.c
+++ b/source/blender/windowmanager/intern/wm_operators.c
@@ -85,6 +85,7 @@
#include "GPU_immediate.h"
#include "GPU_immediate_util.h"
#include "GPU_matrix.h"
+#include "GPU_state.h"
#include "IMB_imbuf_types.h"
#include "IMB_imbuf.h"
@@ -2159,7 +2160,7 @@ static void radial_control_paint_cursor(bContext *UNUSED(C), int x, int y, void
GPU_matrix_translate_2f((float)x, (float)y);
glEnable(GL_BLEND);
- glEnable(GL_LINE_SMOOTH);
+ GPU_line_smooth(true);
/* apply zoom if available */
if (rc->zoom_prop) {
@@ -2220,7 +2221,7 @@ static void radial_control_paint_cursor(bContext *UNUSED(C), int x, int y, void
BLF_disable(fontid, BLF_SHADOW);
glDisable(GL_BLEND);
- glDisable(GL_LINE_SMOOTH);
+ GPU_line_smooth(false);
}