Plane: Fix screen shaking in wrong direction

This commit is contained in:
Jonas Kulla 2014-08-16 14:22:14 +02:00
parent 9c421aed45
commit e7882c0d3e
1 changed files with 2 additions and 2 deletions

View File

@ -92,8 +92,8 @@ struct PlanePrivate
if (gl.npot_repeat)
{
FloatRect srcRect;
srcRect.x = (sceneGeo.yOrigin + ox) / zoomX;
srcRect.y = (sceneGeo.xOrigin + oy) / zoomY;
srcRect.x = (sceneGeo.xOrigin + ox) / zoomX;
srcRect.y = (sceneGeo.yOrigin + oy) / zoomY;
srcRect.w = sceneGeo.rect.w / zoomX;
srcRect.h = sceneGeo.rect.h / zoomY;