From 37d7c06c19b5a9d96060bfffae649109c605e31f Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 13 Feb 2007 22:27:26 +0000 Subject: [PATCH] fix camera matrix --- stepmania/src/RageTextureRenderTarget.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stepmania/src/RageTextureRenderTarget.cpp b/stepmania/src/RageTextureRenderTarget.cpp index fbae66bb14..5023f58575 100644 --- a/stepmania/src/RageTextureRenderTarget.cpp +++ b/stepmania/src/RageTextureRenderTarget.cpp @@ -55,13 +55,15 @@ void RageTextureRenderTarget::BeginRenderingTo( bool bPreserveTexture ) DISPLAY->ChangeCentering( 0, 0, 0, 0 ); // Reset the perspective to fit the new target. + DISPLAY->CameraPushMatrix(); DISPLAY->LoadMenuPerspective( 0, (float) m_iImageWidth, (float) m_iImageHeight, (float) m_iImageWidth/2, (float) m_iImageHeight/2 ); // 0 FOV = ortho } void RageTextureRenderTarget::FinishRenderingTo() { - // Restore the centering matrix. + // Restore the matrixes. DISPLAY->CenteringPopMatrix(); + DISPLAY->CameraPopMatrix(); DISPLAY->SetRenderTarget( 0 ); }