map in map render bug with gl - fix.
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 1 Oct 2010 03:40:12 +0000 (03:40 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 1 Oct 2010 03:40:12 +0000 (03:40 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@52936 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/modules/engines/gl_common/evas_gl_context.c

index 19d06fd..5800ff8 100644 (file)
@@ -381,6 +381,8 @@ _evas_gl_common_viewport_set(Evas_GL_Context *gc)
              vy = 0;
           }
         
+        if (m == -1) ay = vy * 2;
+        
         if ((rot == 0) || (rot == 180))
            glViewport(-2 * vx, -2 * vy, vw, vh);
         else
@@ -1901,6 +1903,7 @@ evas_gl_common_context_image_map4_push(Evas_GL_Context *gc,
    
    if ((p[0].z == p[1].z) && (p[1].z == p[2].z) && (p[2].z == p[3].z))
       flat = 1;
+//   flat = 1;
 
    if (!clip) cx = cy = cw = ch = 0;
    if (!flat)
@@ -1992,6 +1995,8 @@ evas_gl_common_context_image_map4_push(Evas_GL_Context *gc,
         gc->py = p[0].py >> FP;
         gc->change.size = 1;
         _evas_gl_common_viewport_set(gc);
+        cx += gc->shared->ax;
+        cy -= gc->shared->ay;
      }
 again:
    vertex_array_size_check(gc, gc->state.top_pipe, 6);