Bug#582801: SDL_GL_SWAP_CONTROL fix for X11 [patch]

Sylvain Beucler beuc at beuc.net
Sun May 23 19:04:42 UTC 2010


When experimenting with vsync under GNU/Linux, I noticed that
SDL_GL_SWAP_CONTROL was an "OpenGL attribute [] unsupported on this

(I was using Pygame and first thought it was a pygame- or X11-specific
issue, but then I found out that I could use vsync with Pyglet so it
definitely should have worked).

The bug is due to (AFAICT) an implementation oversight in
video/x11/SDL_x11gl.c: it tries to load 'glXSwapIntervalMESA' or
'glXSwapIntervalSGI' dynamically from '/usr/lib/libGL.so.1', while it
should load them through 'glXGetProcAddressARB'.

The following tiny patch does just that, and I now get my smooth
scrolling :)

What do you think?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: sdl.diff
Type: text/x-diff
Size: 740 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-sdl-maintainers/attachments/20100523/b14bb0c2/attachment.diff>

More information about the Pkg-sdl-maintainers mailing list