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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user