Skip to content

Commit

Permalink
UPBGE: Fix scale for camera in SetViewMatrix (rasty)
Browse files Browse the repository at this point in the history
  • Loading branch information
youle31 committed Jul 5, 2016
1 parent 1993d46 commit 413e5d3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1244,8 +1244,8 @@ void RAS_OpenGLRasterizer::SetViewMatrix(const MT_Matrix4x4 &mat,
}

bool negX = (scale[0] < 0.0f);
bool negY = (scale[0] < 0.0f);
bool negZ = (scale[0] < 0.0f);
bool negY = (scale[1] < 0.0f);
bool negZ = (scale[2] < 0.0f);
if (negX || negY || negZ) {
m_viewmatrix.tscale((negX)?-1.0f:1.0f, (negY)?-1.0f:1.0f, (negZ)?-1.0f:1.0f, 1.0);
}
Expand Down

0 comments on commit 413e5d3

Please sign in to comment.