If BeginFrame returns false (eg. we have no drawing context), then EndFrame

will never be called.  This caused messages to not be handled when we lose
focus in fullscreen, so we could never regain focus.
This commit is contained in:
Glenn Maynard
2005-11-09 00:19:02 +00:00
parent 5fbc02ae60
commit 946fce020b
+2 -2
View File
@@ -641,6 +641,8 @@ int RageDisplay_D3D::GetMaxTextureSize() const
bool RageDisplay_D3D::BeginFrame()
{
GraphicsWindow::Update();
#if !defined(XBOX)
switch( g_pd3dDevice->TestCooperativeLevel() )
{
@@ -672,8 +674,6 @@ void RageDisplay_D3D::EndFrame()
g_pd3dDevice->Present( 0, 0, 0, 0 );
FrameLimitAfterVsync();
GraphicsWindow::Update();
RageDisplay::EndFrame();
}