Plane: Fix screen shaking in wrong direction
This commit is contained in:
parent
9c421aed45
commit
e7882c0d3e
|
@ -92,8 +92,8 @@ struct PlanePrivate
|
||||||
if (gl.npot_repeat)
|
if (gl.npot_repeat)
|
||||||
{
|
{
|
||||||
FloatRect srcRect;
|
FloatRect srcRect;
|
||||||
srcRect.x = (sceneGeo.yOrigin + ox) / zoomX;
|
srcRect.x = (sceneGeo.xOrigin + ox) / zoomX;
|
||||||
srcRect.y = (sceneGeo.xOrigin + oy) / zoomY;
|
srcRect.y = (sceneGeo.yOrigin + oy) / zoomY;
|
||||||
srcRect.w = sceneGeo.rect.w / zoomX;
|
srcRect.w = sceneGeo.rect.w / zoomX;
|
||||||
srcRect.h = sceneGeo.rect.h / zoomY;
|
srcRect.h = sceneGeo.rect.h / zoomY;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue