MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / query_extension

Function query_extension

demos/offset.c:342–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340}
341
342static int
343query_extension(char* extName) {
344 char *p = (char *) glGetString(GL_EXTENSIONS);
345 char *end = p + strlen(p);
346 while (p < end) {
347 size_t n = strcspn(p, " ");
348 if ((strlen(extName) == n) && (strncmp(extName, p, n) == 0))
349 return GL_TRUE;
350 p += (n + 1);
351 }
352 return GL_FALSE;
353}

Callers 1

mainFunction · 0.85

Calls 1

glGetStringFunction · 0.85

Tested by

no test coverage detected