Created
October 5, 2017 11:02
-
-
Save gatamar/d14b1d22c7e363e570338d16cd50b6c9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| void dumpExtensions() | |
| { | |
| 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); | |
| LOGE("%s", extensions[i]); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment