We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1006

Summary: SDL_GL_SWAP_CONTROL fix for X11
Product: SDL Reporter: beuc
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: beuc
Version: 1.2.14   
Hardware: All   
OS: Linux   
Attachments: Load glXSwapIntervalMESA/SGI using glXGetProcAddress

Description beuc 2010-05-26 01:14:57 UTC
Created attachment 509 [details]
Load glXSwapIntervalMESA/SGI using glXGetProcAddress

SDL_GL_SWAP_CONTROL is reported as unsupported under X11, even when it is.

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. This allows people to make tearing-less scrolling.
Comment 1 Sam Lantinga 2010-07-18 11:19:54 UTC
This is fixed in revision 6f0706a60146, thanks!