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 - SDL_GL_SWAP_CONTROL fix for X11
Summary: SDL_GL_SWAP_CONTROL fix for X11
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 1.2.14
Hardware: All Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-26 01:14 UTC by beuc
Modified: 2010-07-18 11:19 UTC (History)
1 user (show)

See Also:


Attachments
Load glXSwapIntervalMESA/SGI using glXGetProcAddress (740 bytes, text/x-c)
2010-05-26 01:14 UTC, beuc
Details

Note You need to log in before you can comment on or make changes to this bug.
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!