forked from enlightenment/efl
fix flipped object texture if map enabled AND object happens to be
exactly viewport size. SVN revision: 52940
This commit is contained in:
parent
5b45763676
commit
6abe0b3a94
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue