mirror of
https://github.com/vanitasvitae/Spherical
synced 2025-09-09 10:19:41 +02:00
Add missing mutex
This commit is contained in:
parent
d8de607696
commit
0a87451b6d
1 changed files with 4 additions and 2 deletions
|
@ -58,9 +58,11 @@ public class SphereSurfaceView extends GLSurfaceView implements SensorEventListe
|
|||
if (x < getWidth() / 2)
|
||||
dy = dy * -1 ;
|
||||
|
||||
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;
|
||||
previousY = y;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue