jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=b19d3599a58d310c65a465ba7cddab75c2b16f80

commit b19d3599a58d310c65a465ba7cddab75c2b16f80
Author: Jean-Philippe Andre <jp.an...@samsung.com>
Date:   Wed Mar 4 15:27:21 2015 +0900

    Evas GL common: Force smooth scaling on miniature images
    
    When evas GL uploads textures, it will first upload a 16x16 miniature
    image, and then wait for some idle time in the main loop to upload the
    high-res image.
    
    Some images may not have smooth scaling enabled which results in the
    miniature scaled with GL_NEAREST, showing big ugly squares. Let's
    force smooth scaling instead, for a blur image rather than a
    checkerboard.
---
 src/modules/evas/engines/gl_common/evas_gl_context.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/modules/evas/engines/gl_common/evas_gl_context.c 
b/src/modules/evas/engines/gl_common/evas_gl_context.c
index 5d00516..b925d36 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_context.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_context.c
@@ -1983,6 +1983,7 @@ evas_gl_common_context_image_push(Evas_Engine_GL_Context 
*gc,
         pt = tex->ptt;
         offsetx = tex->tx;
         offsety = tex->ty;
+        smooth = EINA_TRUE;
 
         // Adjusting sx, sy, sw and sh to real size of tiny texture
         sx = sx * (EVAS_GL_TILE_SIZE - 2) / tex->w;

-- 


Reply via email to