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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user