summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2014-06-23 12:07:41 +0900
committerChunEon Park <hermet@hermet.pe.kr>2014-06-23 12:07:41 +0900
commit836c0535f046e16c8c0be32375a67216c187d8e3 (patch)
treec022a883bdc9d283e4544926e64519760289c460
parentcca1c500d5c5b21c3729e690035e2bfa63ef4a9d (diff)
downloadefl-836c0535f046e16c8c0be32375a67216c187d8e3.tar.gz
evas/gl: eeeek. i missed removing one unnecessary checking
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_texture.c4
1 files changed, 1 insertions, 3 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 be773518ad..0c69398815 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_texture.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_texture.c
@@ -904,12 +904,10 @@ evas_gl_common_texture_render_new(Evas_Engine_GL_Context *gc, unsigned int w, un
Evas_GL_Texture *tex;
int lformat;
- lformat = _evas_gl_texture_search_format(alpha, gc->shared->info.bgra, EVAS_COLORSPACE_ARGB8888);
- if (lformat < 0) return NULL;
-
tex = evas_gl_common_texture_alloc(gc, w, h, alpha);
if (!tex) return NULL;
+ lformat = _evas_gl_texture_search_format(alpha, gc->shared->info.bgra, EVAS_COLORSPACE_ARGB8888);
tex->pt = _pool_tex_render_new(gc, w, h,
*matching_format[lformat].intformat,
*matching_format[lformat].format);