diff options
author | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2019-10-11 10:45:34 -0300 |
---|---|---|
committer | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2019-10-11 10:53:33 -0300 |
commit | 943b0699968733b88381679095e87ac38a65cb1d (patch) | |
tree | fea015ece98c214a0bedb7f83da25a9686bffe30 | |
parent | 2a56de80a2d30c37fbe390d1977b8f0352563009 (diff) | |
download | mutter-943b0699968733b88381679095e87ac38a65cb1d.tar.gz |
clutter/shader-effect: Initialize shader-type properly
The default value of the ClutterShaderEffect:shader-type
property is CLUTTER_FRAGMENT_SHADER. However, because the
struct field is not actually initialized to it, it ends
up assuming the value 0, which is CLUTTER_VERTEX_SHADER.
Properly initialize ClutterShaderEffect's shader_type to
CLUTTER_FRAGMENT_SHADER.
https://gitlab.gnome.org/GNOME/mutter/merge_requests/846
-rw-r--r-- | clutter/clutter/clutter-shader-effect.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clutter/clutter/clutter-shader-effect.c b/clutter/clutter/clutter-shader-effect.c index a5ae1ee40..c659dab12 100644 --- a/clutter/clutter/clutter-shader-effect.c +++ b/clutter/clutter/clutter-shader-effect.c @@ -500,6 +500,7 @@ static void clutter_shader_effect_init (ClutterShaderEffect *effect) { effect->priv = clutter_shader_effect_get_instance_private (effect); + effect->priv->shader_type = CLUTTER_FRAGMENT_SHADER; } /** |