From ada03e8673978eb12eb372e7750f7b7467ec1303 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Thu, 14 May 2020 16:16:04 +0200 Subject: UI: Fix Unreported missing background for azone arrow This was caused by the sRGB viewport changes. The fix is to modify the alpha values manually. The shader was also missing a srgb fix. --- source/blender/gpu/shaders/gpu_shader_2D_widget_base_frag.glsl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/gpu') diff --git a/source/blender/gpu/shaders/gpu_shader_2D_widget_base_frag.glsl b/source/blender/gpu/shaders/gpu_shader_2D_widget_base_frag.glsl index 18f58d52f32..bdc87baf924 100644 --- a/source/blender/gpu/shaders/gpu_shader_2D_widget_base_frag.glsl +++ b/source/blender/gpu/shaders/gpu_shader_2D_widget_base_frag.glsl @@ -35,4 +35,6 @@ void main() if (butCo > 0.0) { fragColor.a = 1.0; } + + fragColor = blender_srgb_to_framebuffer_space(fragColor); } -- cgit v1.2.3