Hi all
How should I set this flag? I’ve tried sending it with the other flags
in SDL_SetVideoMode, and setting it via SDL_GL_SetAttribute (before
calling SDL_SetVideoMode), without any luck.
I’ve got an ATI X300 which, AFAIK, supports vsync.
Thanks in advance
/Per Thulin
Per Thulin wrote:
How should I set this flag? I’ve tried sending it with the other flags
in SDL_SetVideoMode, and setting it via SDL_GL_SetAttribute (before
calling SDL_SetVideoMode), without any luck.
SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1); (or whatever else you want
instead of “1”) is correct, and it works for me on Mac OS X.
-Christian
Christian Walther wrote:
Per Thulin wrote:
How should I set this flag? I’ve tried sending it with the other flags
in SDL_SetVideoMode, and setting it via SDL_GL_SetAttribute (before
calling SDL_SetVideoMode), without any luck.
SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1); (or whatever else you want
instead of “1”) is correct, and it works for me on Mac OS X.
-Christian
Hmm, that’s weird – exactly what I tried.
When asking what its value is using SDL_GL_GetAttrute, I get back
"2293728". I don’t really know how to interpret that.
Anyway, thanks for your response.
/Per Thulin
Per Thulin wrote:
How should I set this flag? I’ve tried sending it with the other flags
in SDL_SetVideoMode, and setting it via SDL_GL_SetAttribute (before
calling SDL_SetVideoMode), without any luck.
Set it with SDL_GL_SetAttribute() after setting up video with
SDL_SetVideoMode().
When asking what its value is using SDL_GL_GetAttrute, I get back
"2293728". I don’t really know how to interpret that.
On which platform, or with which SDL subsystem, is this?