Font vertex shader float precision is modified.
authorWoo Seungsoo <om101.woo@samsung.com>
Tue, 4 Oct 2011 01:16:43 +0000 (10:16 +0900)
committerWoo Seungsoo <om101.woo@samsung.com>
Tue, 4 Oct 2011 01:16:43 +0000 (10:16 +0900)
Change-Id: I75ed66062c98c92b6dbb57e04afccd1ade89a92f

src/modules/engines/gl_common/evas_gl_texture.c
src/modules/engines/gl_common/shader/font_vert.h
src/modules/engines/gl_common/shader/font_vert.shd

index 227b80b..c6b6e29 100644 (file)
@@ -953,46 +953,9 @@ evas_gl_common_texture_alpha_update(Evas_GL_Texture *tex, DATA8 *pixels,
    glPixelStorei(GL_UNPACK_ALIGNMENT, 4);
    GLERR(__FUNCTION__, __FILE__, __LINE__, "");
 
-   //  +-+
-   //  +-+
-   //
    _tex_sub_2d(tex->x, tex->y, w, h, tex->pt->format, tex->pt->dataformat,
                pixels);
 
-   DATA8 *ndata;
-   ndata = alloca(w * h);
-   memset(ndata, 0x00, sizeof(DATA8) * w * h);
-
-   // |xxx
-   // |xxx
-   //
-   _tex_sub_2d(tex->x - 1, tex->y, 1, h, tex->pt->format, tex->pt->dataformat,
-               ndata);
-
-   //  xxx|
-   //  xxx|
-   //
-   _tex_sub_2d(tex->x + w, tex->y, 1, h, tex->pt->format, tex->pt->dataformat,
-               ndata + (w - 1));
-
-   //  xxx
-   //  xxx
-   //  ---
-   _tex_sub_2d(tex->x, tex->y + h, w, 1, tex->pt->format, tex->pt->dataformat,
-               ndata + ((h - 1) * w));
-
-   //  xxx
-   //  xxx
-   // o
-   _tex_sub_2d(tex->x - 1, tex->y + h, 1, 1, tex->pt->format, tex->pt->dataformat,
-               ndata + ((h - 1) * w));
-
-   //  xxx
-   //  xxx
-   //     o
-   _tex_sub_2d(tex->x + w, tex->y + h, 1, 1, tex->pt->format, tex->pt->dataformat,
-               ndata + ((h - 1) * w) + (w - 1));
-
    if (tex->pt->texture != tex->gc->pipe[0].shader.cur_tex)
      {
         glBindTexture(GL_TEXTURE_2D, tex->gc->pipe[0].shader.cur_tex);
index ef035c8..8921d9d 100644 (file)
@@ -1,5 +1,5 @@
 "#ifdef GL_ES\n"
-"precision mediump float;\n"
+"precision highp float;\n"
 "#endif\n"
 "attribute vec4 vertex;\n"
 "attribute vec4 color;\n"
index cf98501..606c297 100644 (file)
@@ -1,5 +1,5 @@
 #ifdef GL_ES
-precision mediump float;
+precision highp float;
 #endif
 attribute vec4 vertex;
 attribute vec4 color;