From 94bfb8fbe63a9cd112b3d72b3dbbcffb062265bd Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Fri, 1 Oct 2010 03:40:12 +0000 Subject: [PATCH] map in map render bug with gl - fix. SVN revision: 52936 --- legacy/evas/src/modules/engines/gl_common/evas_gl_context.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/legacy/evas/src/modules/engines/gl_common/evas_gl_context.c b/legacy/evas/src/modules/engines/gl_common/evas_gl_context.c index 19d06fd92e..5800ff8ba0 100644 --- a/legacy/evas/src/modules/engines/gl_common/evas_gl_context.c +++ b/legacy/evas/src/modules/engines/gl_common/evas_gl_context.c @@ -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);