aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evas/canvas/evas_3d_texture.c
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@free.fr>2014-05-10 12:00:05 +0200
committerCedric Bail <cedric.bail@free.fr>2014-05-10 12:04:12 +0200
commit2042bdf9221cb136bbb12308477633668bba5235 (patch)
tree809d745ecbdbf3e055b345f629fad2ca69d7289e /src/lib/evas/canvas/evas_3d_texture.c
parentevas: remove left over Evas_3D public/released API. (diff)
downloadefl-2042bdf9221cb136bbb12308477633668bba5235.tar.gz
evas: fix uninitialized value in Evas_3D.
CID 1211986.
Diffstat (limited to '')
-rw-r--r--src/lib/evas/canvas/evas_3d_texture.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/evas_3d_texture.c b/src/lib/evas/canvas/evas_3d_texture.c
index 03ee85f0e3..4790712049 100644
--- a/src/lib/evas/canvas/evas_3d_texture.c
+++ b/src/lib/evas/canvas/evas_3d_texture.c
@@ -429,15 +429,18 @@ _evas_3d_texture_source_visible_get(Eo *obj EINA_UNUSED, Evas_3D_Texture_Data *p
EOLIAN static Evas_3D_Color_Format
_evas_3d_texture_color_format_get(Eo *obj EINA_UNUSED, Evas_3D_Texture_Data *pd)
{
- Evas_3D_Color_Format format;
+ // FIXME: we need an unknown color format and unify that with Evas color space to
+ Evas_3D_Color_Format format = -1;
Eo *evas = NULL;
eo_do(obj, evas = evas_common_evas_get());
Evas_Public_Data *e = eo_data_scope_get(evas, EVAS_CLASS);
+
if (e->engine.func->texture_color_format_get)
{
e->engine.func->texture_color_format_get(e->engine.data.output,
pd->engine_data, &format);
}
+
return format;
}