[mutter/gbsneto/shader-effect-fix: 11/11] clutter/shader-effect: Initialize shader-type properly
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gbsneto/shader-effect-fix: 11/11] clutter/shader-effect: Initialize shader-type properly
- Date: Fri, 11 Oct 2019 13:53:25 +0000 (UTC)
commit c433c118c24e254758300748fa185d38b63f0e9c
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Oct 11 10:45:34 2019 -0300
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
clutter/clutter/clutter-shader-effect.c | 1 +
1 file changed, 1 insertion(+)
---
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;
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]