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:
authorGermano <germano.costa@ig.com.br>2018-04-09 19:45:17 +0300
committerGermano <germano.costa@ig.com.br>2018-04-09 19:45:17 +0300
commit2a0dca42521227b7fccbdc4e451cd2a15de37650 (patch)
treea14c6ca00c3703aa595ba6ef5623c1901545c3ef /source/blender/gpu/shaders/gpu_shader_2D_widget_base_frag.glsl
parentc1a2f973daafa403664353526b8cf3c59cccf24c (diff)
UI: Fix widget shader on certain compiler.
There was a crash with `Intel(R) HD Graphics 4000`. Thanks to @fclem for the help and review.
Diffstat (limited to 'source/blender/gpu/shaders/gpu_shader_2D_widget_base_frag.glsl')
-rw-r--r--source/blender/gpu/shaders/gpu_shader_2D_widget_base_frag.glsl3
1 files changed, 2 insertions, 1 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 929674ab446..f660cae8d12 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
@@ -25,7 +25,8 @@ void main()
fragColor = finalColor;
if (butCo > 0.5) {
- fragColor = mix(do_checkerboard(), fragColor, fragColor.a);
+ vec4 checker = do_checkerboard();
+ fragColor = mix(checker, fragColor, fragColor.a);
}
if (butCo > 0.0) {