| 471 | } |
| 472 | |
| 473 | bool 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 | } |
no outgoing calls