projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eed5326
)
only try vsync, when set in config
author
Matthias Braun
<matze@braunis.de>
Fri, 25 May 2007 14:15:29 +0000
(14:15 +0000)
committer
Matthias Braun
<matze@braunis.de>
Fri, 25 May 2007 14:15:29 +0000
(14:15 +0000)
SVN-Revision: 5010
src/main.cpp
patch
|
blob
|
history
diff --git
a/src/main.cpp
b/src/main.cpp
index
8a7ba54
..
38180b5
100644
(file)
--- a/
src/main.cpp
+++ b/
src/main.cpp
@@
-372,8
+372,10
@@
void init_video()
desktop_height = info->current_h;
}
- /* we want vsync for smooth scrolling */
- SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1);
+ if(config->try_vsync) {
+ /* we want vsync for smooth scrolling */
+ SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1);
+ }
#endif
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);