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.
This commit is contained in:
Clément Foucault
2020-09-14 01:08:35 +02:00
parent c1c53d3ae3
commit 0f61b27e93

View File

@@ -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);