Skip to content

Commit

Permalink
turned on vsync
Browse files Browse the repository at this point in the history
  • Loading branch information
thomashope committed Mar 7, 2015
1 parent 0507f3c commit 4950d34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/SDLsetup.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ bool createWindow() {
}

bool createRenderer() {
ren = SDL_CreateRenderer(win, -1, SDL_RENDERER_ACCELERATED);
ren = SDL_CreateRenderer(win, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC);
if (ren == nullptr) {
SDL_DestroyWindow(win);
logSDLError(std::cout, "SDL_CreateRenderer");
Expand Down

0 comments on commit 4950d34

Please sign in to comment.