Skip to content

Commit

Permalink
Video: enabled VSync for renderer (experimental)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Jun 14, 2017
1 parent b3fbe78 commit 8fd75be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video.cpp
Expand Up @@ -219,7 +219,7 @@ void CVideo::init_window()
#ifdef SW_RENDERING_LEGACY_MODE
window.reset(new sdl::window("", x, y, w, h, video_flags, SDL_RENDERER_SOFTWARE | SDL_RENDERER_TARGETTEXTURE));
#else
window.reset(new sdl::window("", x, y, w, h, video_flags, SDL_RENDERER_ACCELERATED | SDL_RENDERER_TARGETTEXTURE));
window.reset(new sdl::window("", x, y, w, h, video_flags, SDL_RENDERER_ACCELERATED | SDL_RENDERER_TARGETTEXTURE | SDL_RENDERER_PRESENTVSYNC));
#endif

std::cerr << "Setting mode to " << w << "x" << h << std::endl;
Expand Down

0 comments on commit 8fd75be

Please sign in to comment.