diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-03-24 01:54:01 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-03-24 01:54:01 +0300 |
commit | 72c323d50c290a91414a3363647f45b5444c4e66 (patch) | |
tree | d9257b5f01f2b4dbdb62651bc2f4539f415848b6 /source/blender/draw/intern/draw_view.c | |
parent | 53cd37d5102bc68da686e742b73aff023a4880b4 (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.c | 4 |
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); } |