| Summary: | SDL_GL_ExtensionSupported() fails on 3.0+ non-compatability contexts | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Alexander Sabourenkov <llxxnntt> |
| Component: | video | Assignee: | 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 | ||
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." |
Created attachment 865 [details] proposed patch because glGetString(GL_EXTENSIONS) was deprecated. attached patch works for me.