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/draw/intern/draw_view.c
parent53cd37d5102bc68da686e742b73aff023a4880b4 (diff)
GPU: State: Replace GL_LINE_SMOOTH by GPU_line_smooth
Diffstat (limited to 'source/blender/draw/intern/draw_view.c')
-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 cde63e7408b..c578625de05 100644
--- a/source/blender/draw/intern/draw_view.c
+++ b/source/blender/draw/intern/draw_view.c
@@ -216,7 +216,7 @@ void DRW_draw_cursor(void)
/* Draw nice Anti Aliased cursor. */
GPU_line_width(1.0f);
glEnable(GL_BLEND);
- glEnable(GL_LINE_SMOOTH);
+ GPU_line_smooth(true);
float eps = 1e-5f;
rv3d->viewquat[0] = -rv3d->viewquat[0];
@@ -278,7 +278,7 @@ void DRW_draw_cursor(void)
GPU_batch_draw(cursor_batch);
glDisable(GL_BLEND);
- glDisable(GL_LINE_SMOOTH);
+ GPU_line_smooth(false);
GPU_matrix_pop();
GPU_matrix_projection_set(original_proj);
}