Skip to content

Commit

Permalink
c: remove one duplicated check for glGetString(GL_VERSION)
Browse files Browse the repository at this point in the history
gh: #402
  • Loading branch information
z-s-e authored Dec 26, 2023
1 parent d535dee commit f241d94
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion glad/generator/c/templates/gl.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ int gladLoad{{ api|api }}{{ 'Context' if options.mx }}UserPtr({{ template_utils.

{{ 'glGetString'|ctx }} = (PFNGLGETSTRINGPROC) load(userptr, "glGetString");
if({{ 'glGetString'|ctx }} == NULL) return 0;
if({{ 'glGetString'|ctx }}(GL_VERSION) == NULL) return 0;
version = glad_gl_find_core_{{ api|lower }}({{ 'context' if options.mx }});

{% for feature, _ in loadable(feature_set.features, api=api) %}
Expand Down

0 comments on commit f241d94

Please sign in to comment.