Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glGetString(GL_EXTENSIONS) returns NULL #51

Closed
mean-ui-thread opened this issue Jul 14, 2015 · 2 comments
Closed

glGetString(GL_EXTENSIONS) returns NULL #51

mean-ui-thread opened this issue Jul 14, 2015 · 2 comments
Milestone

Comments

@mean-ui-thread
Copy link

I'm on Linux 3.16, MESA OpenGL driver 10.1.3, using OpenGL 3+ and none of the extensions can be detected by GLEW because glGetString(GL_EXTENTIONS) returns NULL on my system:

  /* query opengl extensions string */
  extStart = glGetString(GL_EXTENSIONS);

if I do this, it works fine:

    GLint n;
    glGetIntegerv(GL_NUM_EXTENSIONS, &n);
    if (n > 0)
    {
        const char** extensions = (const char**)malloc(n * sizeof(char*));
        GLint i;
        for (i = 0; i < n; i++)
        {
            extensions[i] = (char*)glGetStringi(GL_EXTENSIONS, i);
        }
    }
@mean-ui-thread
Copy link
Author

oh, there is already an outstanding pull request for this issue (#24) I will close this issue since someone is already proposing a fix.

@nigels-com
Copy link
Owner

Yes, there have been various efforts to support core contexts, but nothing that has been accepted into the mainline yet. I must get back to that...

  • Nigel

@nigels-com nigels-com modified the milestone: GLEW 2.0.0 Apr 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants