Skip to content

Commit

Permalink
Present a frame once the window is available so we don't display a wh…
Browse files Browse the repository at this point in the history
…ite frame while we finish initializing.
  • Loading branch information
xwidghet committed Jun 11, 2017
1 parent d0f9900 commit d65b0ff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/RageDisplay_D3D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,9 @@ RString RageDisplay_D3D::TryVideoMode( const VideoModeParams &_p, bool &bNewDevi

ResolutionChanged();

// Present once the window is created so we don't display a white frame while initializing
g_pd3dDevice->Present(0, 0, 0, 0);

return RString(); // mode change successful
}

Expand Down

0 comments on commit d65b0ff

Please sign in to comment.