diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-09-14 02:08:35 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-09-14 02:10:25 +0300 |
commit | 0f61b27e93f1eedff4217b2dc8d11c774d4d0f6f (patch) | |
tree | a78348e775d024813bcf27cd12303827d86b2652 /source/blender/draw | |
parent | c1c53d3ae31ad1b2c0b16077e53574d20390ae84 (diff) |
DRW: Fix wrong use of GPU_blend
Use the enum instead of a boolean. Exibit n°5512 where typecast
warning would have find the error.
Diffstat (limited to 'source/blender/draw')
-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 3033cf70b29..86f19c6cfd7 100644 --- a/source/blender/draw/intern/draw_view.c +++ b/source/blender/draw/intern/draw_view.c @@ -231,7 +231,7 @@ void DRW_draw_cursor_2d(void) /* Draw nice Anti Aliased cursor. */ GPU_line_width(1.0f); - GPU_blend(true); + GPU_blend(GPU_BLEND_ALPHA); GPU_line_smooth(true); /* Draw lines */ @@ -248,7 +248,7 @@ void DRW_draw_cursor_2d(void) GPU_batch_draw(cursor_batch); - GPU_blend(false); + GPU_blend(GPU_BLEND_NONE); GPU_line_smooth(false); GPU_matrix_pop(); GPU_matrix_projection_set(original_proj); |