[mutter/gbsneto/shader-effect-fix: 2/2] 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: 2/2] clutter/shader-effect: Initialize shader-type properly
- Date: Fri, 11 Oct 2019 13:51:17 +0000 (UTC)
commit d4da839c4c397a25f33bc6dbd26cd56354c57f76
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]