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 - SDL_GL_ExtensionSupported() fails on 3.0+ non-compatability contexts
Summary: SDL_GL_ExtensionSupported() fails on 3.0+ non-compatability contexts
Status: RESOLVED DUPLICATE of bug 1620
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: x86_64 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-02 03:00 UTC by Alexander Sabourenkov
Modified: 2013-07-12 11:52 UTC (History)
2 users (show)

See Also:


Attachments
proposed patch (2.04 KB, patch)
2012-06-02 03:00 UTC, Alexander Sabourenkov
Details | Diff

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