From a7da5aa79f602f87d29163985d570d2c6574f34f Mon Sep 17 00:00:00 2001 From: leo Date: Sat, 28 Feb 2015 07:10:51 +0000 Subject: [PATCH] Fixed case where the view matrix was being changed directly. --- common/camera.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common/camera.cpp b/common/camera.cpp index 130c7c5e..33de813a 100644 --- a/common/camera.cpp +++ b/common/camera.cpp @@ -589,12 +589,10 @@ void lcCamera::DrawInterface(lcContext* Context, const lcMatrix44& ViewMatrix) c if (IsSelected()) { - Context->SetWorldViewMatrix(lcMul(ViewWorld, ViewMatrix)); - float Dist = lcLength(mTargetPosition - mPosition); lcMatrix44 Projection = lcMatrix44Perspective(m_fovy, 1.33f, 0.01f, Dist); Projection = lcMatrix44Inverse(Projection); - glMultMatrixf(Projection); + Context->SetWorldViewMatrix(lcMul(Projection, lcMul(ViewWorld, ViewMatrix))); float ProjVerts[16][3] = {