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

Fix GLAD error condition #2059

Merged
merged 1 commit into from
Sep 3, 2018
Merged

Fix GLAD error condition #2059

merged 1 commit into from
Sep 3, 2018

Commits on Sep 3, 2018

  1. Fix GLAD error condition

    `gladLoadGL` returns 0 on fail, not the other way around.
    
    Excerpts from `glad.c` generated by [the oficial site](https://glad.dav1d.de):
    
    ```c++
    glGetString = (PFNGLGETSTRINGPROC)load("glGetString");
    if(glGetString == NULL) return 0;
    if(glGetString(GL_VERSION) == NULL) return 0;
    	
    // ...
    
    if (!find_extensionsGL()) return 0;
    return GLVersion.major != 0 || GLVersion.minor != 0;
    ```
    jiri authored Sep 3, 2018
    Configuration menu
    Copy the full SHA
    062dba0 View commit details
    Browse the repository at this point in the history