You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This bug report was migrated from our old Bugzilla tracker.
Reported in version: 1.2.14 Reported for operating system, platform: Mac OS X 10.6, All
Comments on the original bug report:
On 2010-05-10 14:39:56 +0000, Vittorio Giovara wrote:
the usual 1.2 way of enabling Vsync is not working since mac os x 10.6 came out
i don't know if it's a driver issue but just writing
SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1);
has no effect and a lot of tearing happens when using a gl context.
We found out the fix code in some python game in which they used
one := 1;
CGLSetParameter(CGLGetCurrentContext(), 222, @one);
to workaround it. Above code is in pascal and links agains the OpenGL library.
With this fix tearing never occurs under any mac version; i have untested if the problem also affects sdl 1.3, might be worth to try it.
On 2011-02-16 04:17:25 +0000, Sam Lantinga wrote:
This is working correctly in SDL 1.3.
On 2011-02-16 04:48:33 +0000, Vittorio Giovara wrote:
but isn't it worth to fix this bug in the sdl 1.2 branch?
On 2011-02-16 05:02:10 +0000, Sam Lantinga wrote:
Yes, but I won't have time to get to it for a while. :)
On 2011-08-21 07:58:38 +0000, Ryan C. Gordon wrote:
Is the concern that 1.2 isn't setting vsync at all, or it doesn't set vsync until you call SDL_SetVideoMode() again?
1.3 lets you toggle vsync on an existing context, 1.2 needs you to specify vsync preferences before setting the video mode.
(it's working here on Lion, fwiw: run test/testgl -sync, and you can see.)
--ryan.
On 2011-08-23 01:28:22 +0000, Vittorio Giovara wrote:
oh my bad, i was enabling SDL_GL_SWAP_CONTROL after creating the window
when enabled before, it works fine! thanks for pointing it out
The text was updated successfully, but these errors were encountered:
This bug report was migrated from our old Bugzilla tracker.
Reported in version: 1.2.14
Reported for operating system, platform: Mac OS X 10.6, All
Comments on the original bug report:
On 2010-05-10 14:39:56 +0000, Vittorio Giovara wrote:
On 2011-02-16 04:17:25 +0000, Sam Lantinga wrote:
On 2011-02-16 04:48:33 +0000, Vittorio Giovara wrote:
On 2011-02-16 05:02:10 +0000, Sam Lantinga wrote:
On 2011-08-21 07:58:38 +0000, Ryan C. Gordon wrote:
On 2011-08-23 01:28:22 +0000, Vittorio Giovara wrote:
The text was updated successfully, but these errors were encountered: