[evas_gl_common.h]
authorChunEon Park <chuneon.park@samsung.com>
Fri, 1 Oct 2010 08:02:48 +0000 (17:02 +0900)
committerChunEon Park <chuneon.park@samsung.com>
Fri, 1 Oct 2010 08:02:48 +0000 (17:02 +0900)
[evas_gl.context.c] fixed texturemapping bug.

src/modules/engines/gl_common/evas_gl_common.h
src/modules/engines/gl_common/evas_gl_context.c

index 1b77a18..d2c734a 100644 (file)
@@ -161,6 +161,7 @@ struct _Evas_GL_Shared
    int references;
    int w, h;
    int rot;
+   int mflip;
 };
 
 #define RTYPE_RECT  1
index a46b6e1..4dcfed2 100644 (file)
@@ -324,12 +324,14 @@ _evas_gl_common_viewport_set(Evas_GL_Context *gc)
 
    if ((!gc->change.size) || 
        ((gc->shared->w == w) && (gc->shared->h == h) &&
-           (gc->shared->rot == rot)))
+           (gc->shared->rot == rot) &&
+                  (gc->shared->mflip == m )))
       return;
    
    gc->shared->w = w;
-   gc->shared->h = h;
+   gc->shared->h = h;   
    gc->shared->rot = rot;
+   gc->shared->mflip = m;
    gc->change.size = 0;
 
    if ((rot == 0) || (rot == 180))