Skip to content

Instantly share code, notes, and snippets.

@gatamar
Created October 5, 2017 11:02
Show Gist options
  • Save gatamar/d14b1d22c7e363e570338d16cd50b6c9 to your computer and use it in GitHub Desktop.
Save gatamar/d14b1d22c7e363e570338d16cd50b6c9 to your computer and use it in GitHub Desktop.
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