Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2020-05-14 17:16:04 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-05-14 17:16:29 +0300
commitada03e8673978eb12eb372e7750f7b7467ec1303 (patch)
treede30c327f64d1f1d082ffec74196061e976941ce /source/blender/gpu
parent0909b564a9330a9c1c4c5df3b05bf77ae20e8927 (diff)
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.
Diffstat (limited to 'source/blender/gpu')
-rw-r--r--source/blender/gpu/shaders/gpu_shader_2D_widget_base_frag.glsl2
1 files changed, 2 insertions, 0 deletions
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);
}