fix camera matrix

This commit is contained in:
Glenn Maynard
2007-02-13 22:27:26 +00:00
parent 6f3c30e142
commit 37d7c06c19
+3 -1
View File
@@ -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 );
}