1
0
Fork 0
mirror of https://github.com/vanitasvitae/Spherical synced 2024-12-22 02:48:00 +01:00

Add missing mutex

This commit is contained in:
Simon Leistikow 2017-09-13 15:11:23 +02:00
parent d8de607696
commit 0a87451b6d

View file

@ -58,8 +58,10 @@ public class SphereSurfaceView extends GLSurfaceView implements SensorEventListe
if (x < getWidth() / 2)
dy = dy * -1 ;
Matrix.rotateM(rotationMatrix, 0, dy * TOUCH_SCALE_FACTOR, 1.0f, 0.0f, 0.0f);
Matrix.rotateM(rotationMatrix, 0, dx * TOUCH_SCALE_FACTOR, 0.0f, 1.0f, 0.0f);
synchronized (rotationMatrix) {
Matrix.rotateM(rotationMatrix, 0, dy * TOUCH_SCALE_FACTOR, 1.0f, 0.0f, 0.0f);
Matrix.rotateM(rotationMatrix, 0, dx * TOUCH_SCALE_FACTOR, 0.0f, 1.0f, 0.0f);
}
}
previousX = x;