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 1510

Summary: SDL_GL_ExtensionSupported() fails on 3.0+ non-compatability contexts
Product: SDL Reporter: Alexander Sabourenkov <llxxnntt>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED DUPLICATE QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: icculus, matthias.bentrup
Version: HG 2.0   
Hardware: x86_64   
OS: Linux   
Attachments: proposed patch

Description Alexander Sabourenkov 2012-06-02 03:00:49 UTC
Created attachment 865 [details]
proposed patch

because glGetString(GL_EXTENSIONS) was deprecated.

attached patch works for me.
Comment 1 Matthias Bentrup 2012-06-20 09:16:05 UTC
I think you have to check the GL_VERSION >= 3.0 first, to make sure that glGetStringi is actually supported. The GLX spec states explicitly:

"A non-NULL return value for glXGetProcAddress does not guarantee
that an extension function is actually supported at runtime. The
client must must also query glGetString(GL_EXTENSIONS) or
glXQueryExtensionsString to determine if an extension is supported
by a particular context."
Comment 2 Ryan C. Gordon 2013-07-12 11:52:48 UTC
We ended up fixing this in Bug #1620.

--ryan.

*** This bug has been marked as a duplicate of bug 1620 ***