forked from Dav1dde/glad
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
glad: fixes alias extension resolution
we cannot limit the result set of `get_requirements` to the list of already existing commands from the feature set, this way we will not get any new commands to resolve aliases for -> there wont be any new aliases closes: Dav1dde#334
- Loading branch information
Showing
3 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
* GL 4.6 No extensions, with aliasing | ||
* | ||
* GLAD: $GLAD --out-path=$tmp --api="gl:core=4.6" --extensions="" c --alias | ||
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include $tmp/src/gl.c -ldl | ||
* RUN: $tmp/test | ||
*/ | ||
|
||
#include <glad/gl.h> | ||
|
||
int main(void) { | ||
(void) glActiveTextureARB; | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
* GLES2 No extensions, with aliasing | ||
* | ||
* Issue: https://github.com/Dav1dde/glad/issues/334 | ||
* | ||
* GLAD: $GLAD --out-path=$tmp --api="gles2=3.2" --extensions="" c --alias | ||
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include $tmp/src/gles2.c -ldl | ||
* RUN: $tmp/test | ||
*/ | ||
|
||
#include <glad/gles2.h> | ||
|
||
int main(void) { | ||
(void) glGenVertexArraysOES; | ||
return 0; | ||
} |