mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-21 11:21:52 +00:00
Set VSYNC
This commit is contained in:
parent
4f9833153f
commit
60b444834e
1 changed files with 1 additions and 1 deletions
|
@ -1621,7 +1621,7 @@ static qboolean CreateSDLWindow(int flags, int w, int h)
|
|||
// TODO: support fullscreen on different displays with SDL_WINDOWPOS_UNDEFINED_DISPLAY(displaynum)
|
||||
window = SDL_CreateWindow("Yamagi Quake II", windowPos, windowPos, w, h, flags);
|
||||
|
||||
renderer = SDL_CreateRenderer(window, -1, 0);
|
||||
renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC);
|
||||
surface = SDL_CreateRGBSurface(0, w, h, bpp, Rmask, Gmask, Bmask, Amask);
|
||||
|
||||
texture = SDL_CreateTexture(renderer,
|
||||
|
|
Loading…
Reference in a new issue