From: cedric Date: Mon, 29 Aug 2011 21:52:00 +0000 (+0000) Subject: evas: use simpler format as much as possible. X-Git-Tag: submit/trunk/20120815.174732~960 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e10f9d014fb3a027bcd97bfa6e43e3f9a529e8a0;p=profile%2Fivi%2Fevas.git evas: use simpler format as much as possible. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@62975 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/modules/engines/gl_common/evas_gl_texture.c b/src/modules/engines/gl_common/evas_gl_texture.c index 95c720e..ff38a6d 100644 --- a/src/modules/engines/gl_common/evas_gl_texture.c +++ b/src/modules/engines/gl_common/evas_gl_texture.c @@ -28,7 +28,7 @@ static const GLenum lum_fmt = GL_LUMINANCE; static const GLenum lum_ifmt = GL_LUMINANCE; static const GLenum lum_alpha_fmt = GL_LUMINANCE_ALPHA; static const GLenum lum_alpha_ifmt = GL_LUMINANCE_ALPHA; -static const GLenum rgba8_ifmt = GL_RGBA8; +static const GLenum rgba8_ifmt = GL_RGBA; static const GLenum rgba8_fmt = GL_BGRA; static struct { @@ -348,10 +348,7 @@ _pool_tex_render_new(Evas_Engine_GL_Context *gc, int w, int h, int intformat, in pt->h = h; pt->intformat = intformat; pt->format = format; - if ((intformat == (int)rgba8_ifmt) && (format == (int)rgba8_fmt)) - pt->dataformat = GL_UNSIGNED_INT_8_8_8_8_REV; - else - pt->dataformat = GL_UNSIGNED_BYTE; + pt->dataformat = GL_UNSIGNED_BYTE; pt->render = 1; pt->references = 0; #if defined (GLES_VARIETY_S3C6410) || defined (GLES_VARIETY_SGX)