clear world matrix

This commit is contained in:
Glenn Maynard
2007-02-13 23:09:31 +00:00
parent 17b3abc3ba
commit 0edbf07e08
@@ -57,6 +57,9 @@ void RageTextureRenderTarget::BeginRenderingTo( bool bPreserveTexture )
// Reset the perspective to fit the new target. // Reset the perspective to fit the new target.
DISPLAY->CameraPushMatrix(); DISPLAY->CameraPushMatrix();
DISPLAY->LoadMenuPerspective( 0, (float) m_iImageWidth, (float) m_iImageHeight, (float) m_iImageWidth/2, (float) m_iImageHeight/2 ); // 0 FOV = ortho DISPLAY->LoadMenuPerspective( 0, (float) m_iImageWidth, (float) m_iImageHeight, (float) m_iImageWidth/2, (float) m_iImageHeight/2 ); // 0 FOV = ortho
DISPLAY->PushMatrix();
DISPLAY->LoadIdentity();
} }
void RageTextureRenderTarget::FinishRenderingTo() void RageTextureRenderTarget::FinishRenderingTo()
@@ -64,6 +67,7 @@ void RageTextureRenderTarget::FinishRenderingTo()
// Restore the matrixes. // Restore the matrixes.
DISPLAY->CenteringPopMatrix(); DISPLAY->CenteringPopMatrix();
DISPLAY->CameraPopMatrix(); DISPLAY->CameraPopMatrix();
DISPLAY->PopMatrix();
DISPLAY->SetRenderTarget( 0 ); DISPLAY->SetRenderTarget( 0 );
} }