Skip to content

Commit

Permalink
OpenGL: Present fix in multi-window w/ vr mode enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcel303 committed Jun 8, 2022
1 parent 7ed5768 commit 5d71787
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions framework/framework.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2159,6 +2159,7 @@ void Framework::present()
{
if (window->getWindowData()->needsPresent)
{
SDL_GL_MakeCurrent(window->getWindow(), globals.glContext);
SDL_GL_SwapWindow(window->getWindow());
window->getWindowData()->needsPresent = false;
}
Expand Down

0 comments on commit 5d71787

Please sign in to comment.