From e58285dc1dc41312e9514963320648a0422c2ecb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Thu, 22 Oct 2020 21:09:11 +0200 Subject: Fix T73793 Walk navigation crosshair gets hidden behind objects This was reintroduced by the wide line emulation workaround. --- source/blender/gpu/intern/gpu_state.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/gpu') diff --git a/source/blender/gpu/intern/gpu_state.cc b/source/blender/gpu/intern/gpu_state.cc index d0048ab9b87..fae196b202a 100644 --- a/source/blender/gpu/intern/gpu_state.cc +++ b/source/blender/gpu/intern/gpu_state.cc @@ -167,7 +167,8 @@ void GPU_depth_range(float near, float far) void GPU_line_width(float width) { - SET_MUTABLE_STATE(line_width, width * PIXELSIZE); + width = max_ff(1.0f, width * PIXELSIZE); + SET_MUTABLE_STATE(line_width, width); } void GPU_point_size(float size) -- cgit v1.2.3