mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-11-25 09:44:02 +00:00
prevent jerkiness when creating window in fullscreen mode
This commit is contained in:
parent
067472d61b
commit
37fa087c2e
1 changed files with 4 additions and 1 deletions
|
@ -105,6 +105,9 @@ void Window::_open(unsigned w, unsigned h, bool full, unsigned bpp, bool vsync,
|
||||||
exit_error("Failed to create GL context");
|
exit_error("Failed to create GL context");
|
||||||
SDL_GL_MakeCurrent(WIN, GLCTX);
|
SDL_GL_MakeCurrent(WIN, GLCTX);
|
||||||
|
|
||||||
|
setvsync(vsync);
|
||||||
|
|
||||||
|
if(!full) // When we're in fullscreen mode everything is fine by now
|
||||||
_adjust(w, h, full, bpp, vsync, display, hz);
|
_adjust(w, h, full, bpp, vsync, display, hz);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue