summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/gl_common/evas_gl_texture.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2014-08-13 09:38:33 -0400
committerChris Michael <cp.michael@samsung.com>2014-08-13 09:38:33 -0400
commit4ad176e4813aaff9f7fd66fdc8785023cc146600 (patch)
tree65b5c306661a8d96e79790944e48b0db08a857a6 /src/modules/evas/engines/gl_common/evas_gl_texture.c
parent8d3d12282b8637ff7e357f620735393bf733d746 (diff)
evas-gl-common: Fix invalid use of Texture
We cannot use the texture to find a valid format Before the texture is actually created. This is invalid, leads to "warning: tex is used uninitialized' message from the compiler, and just plain wrong. Instead, use the alpha property of the Evas_GL_Image to find the proper texture format, Then create the texture. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to '')
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_texture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/evas/engines/gl_common/evas_gl_texture.c b/src/modules/evas/engines/gl_common/evas_gl_texture.c
index 1451ac9c58..f3e2ab9333 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_texture.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_texture.c
@@ -998,7 +998,7 @@ evas_gl_common_texture_dynamic_new(Evas_Engine_GL_Context *gc, Evas_GL_Image *im
998 Evas_GL_Texture *tex; 998 Evas_GL_Texture *tex;
999 int lformat; 999 int lformat;
1000 1000
1001 lformat = _evas_gl_texture_search_format(tex->alpha, gc->shared->info.bgra, EVAS_COLORSPACE_ARGB8888); 1001 lformat = _evas_gl_texture_search_format(im->alpha, gc->shared->info.bgra, EVAS_COLORSPACE_ARGB8888);
1002 if (lformat < 0) return NULL; 1002 if (lformat < 0) return NULL;
1003 1003
1004 tex = evas_gl_common_texture_alloc(gc, im->w, im->h, im->alpha); 1004 tex = evas_gl_common_texture_alloc(gc, im->w, im->h, im->alpha);