MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCL-CTS / CheckGLIntegerExtensionSupport

Function CheckGLIntegerExtensionSupport

test_conformance/gles/helpers.cpp:473–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

471}
472
473bool CheckGLIntegerExtensionSupport()
474{
475 // Get the OpenGL version and supported extensions
476 const GLubyte *glVersion = glGetString(GL_VERSION);
477 const GLubyte *glExtensionList = glGetString(GL_EXTENSIONS);
478
479 // Check if the OpenGL vrsion is 3.0 or grater or GL_EXT_texture_integer is supported
480 return (((glVersion[0] - '0') >= 3) || (strstr((const char*)glExtensionList, "GL_EXT_texture_integer")));
481}

Callers 5

test_image_format_readFunction · 0.85
test_image_format_writeFunction · 0.85

Calls

no outgoing calls

Tested by 5

test_image_format_readFunction · 0.68
test_image_format_writeFunction · 0.68