fix flipped object texture if map enabled AND object happens to be

exactly viewport size.



SVN revision: 52940
This commit is contained in:
Carsten Haitzler 2010-10-01 06:22:31 +00:00
parent 5b45763676
commit 6abe0b3a94
2 changed files with 5 additions and 2 deletions

View 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;

View 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;