fix flipped object texture if map enabled AND object happens to be
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 1 Oct 2010 06:22:31 +0000 (06:22 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 1 Oct 2010 06:22:31 +0000 (06:22 +0000)
exactly viewport size.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@52940 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

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

index 6e666b9..d1bf62a 100644 (file)
@@ -199,6 +199,7 @@ struct _Evas_GL_Shared
    int references;
    int w, h;
    int rot;
+   int mflip;
    // persp map
    int foc, z0, px, py;
    int ax, ay;
index 9b22857..2876718 100644 (file)
@@ -301,15 +301,17 @@ _evas_gl_common_viewport_set(Evas_GL_Context *gc)
         rot = 0;
         m = -1;
      }
-
+   
    if ((!gc->change.size) || 
        ((gc->shared->w == w) && (gc->shared->h == h) &&
-           (gc->shared->rot == rot) && (gc->shared->foc == gc->foc)))
+           (gc->shared->rot == rot) && (gc->shared->foc == gc->foc) &&
+           (gc->shared->mflip == m)))
       return;
    
    gc->shared->w = w;
    gc->shared->h = h;
    gc->shared->rot = rot;
+   gc->shared->mflip = m;
    gc->shared->foc = foc;
    gc->shared->z0 = gc->z0;
    gc->shared->px = gc->px;