Fix crash clearing the texture cache on shutdown.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2374 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
hrydgard
2009-02-22 20:21:56 +00:00
parent 16584c83d1
commit 769160dfbd
5 changed files with 35 additions and 44 deletions

View File

@ -880,9 +880,9 @@ void Renderer::Swap(const TRectangle& rc)
// The picture width
PictureWidth = WinWidth / Ratio;
// Move the left of the picture to the middle of the screen
FloatXOffset = FloatXOffset + WinWidth / 2.0;
FloatXOffset = FloatXOffset + WinWidth / 2.0f;
// Then remove half the picture height to move it to the horizontal center
FloatXOffset = FloatXOffset - PictureWidth / 2.0;
FloatXOffset = FloatXOffset - PictureWidth / 2.0f;
// --------------------
}
// The window is to high, we have to limit the height
@ -1113,7 +1113,7 @@ void Renderer::SwapBuffers()
// Clean out old stuff from caches
PixelShaderCache::Cleanup();
TextureMngr::Cleanup();
TextureMngr::ProgressiveCleanup();
frameCount++;