diff --git a/examples/Demo/Source/Demos/OpenGLDemo.cpp b/examples/Demo/Source/Demos/OpenGLDemo.cpp index 9462596563..def635e747 100644 --- a/examples/Demo/Source/Demos/OpenGLDemo.cpp +++ b/examples/Demo/Source/Demos/OpenGLDemo.cpp @@ -701,13 +701,12 @@ struct OpenGLDemoClasses Matrix3D getViewMatrix() const { - Matrix3D viewMatrix (Vector3D (0.0f, 1.0f, -10.0f)); - - viewMatrix *= draggableOrientation.getRotationMatrix(); + Matrix3D viewMatrix = draggableOrientation.getRotationMatrix() + * Vector3D (0.0f, 1.0f, -10.0f); Matrix3D rotationMatrix = viewMatrix.rotated (Vector3D (rotation, rotation, -0.3f)); - return viewMatrix * rotationMatrix; + return rotationMatrix * viewMatrix; } void setTexture (DemoTexture* t)