summaryrefslogtreecommitdiffstats
path: root/src/glut/beos/glutGet.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/glut/beos/glutGet.cpp')
-rw-r--r--src/glut/beos/glutGet.cpp36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/glut/beos/glutGet.cpp b/src/glut/beos/glutGet.cpp
index 45d07f7e46a..04a8479b985 100644
--- a/src/glut/beos/glutGet.cpp
+++ b/src/glut/beos/glutGet.cpp
@@ -209,39 +209,3 @@ int glutGetModifiers() {
return gState.modifierKeys;
}
-/***********************************************************
- * FUNCTION: glutExtensionSupported (9.5)
- *
- * DESCRIPTION: is an OpenGL extension supported (from glut_ext.c)
- ***********************************************************/
-int glutExtensionSupported(const char *extension) {
- static const GLubyte *extensions = NULL;
- const GLubyte *start;
- GLubyte *where, *terminator;
-
- /* Extension names should not have spaces. */
- where = (GLubyte *) strchr(extension, ' ');
- if (where || *extension == '\0')
- return 0;
-
- if (!extensions)
- extensions = glGetString(GL_EXTENSIONS);
- /* It takes a bit of care to be fool-proof about parsing the
- OpenGL extensions string. Don't be fooled by sub-strings,
-
- etc. */
- start = extensions;
- for (;;) {
- where = (GLubyte *) strstr((const char *) start, extension);
- if (!where)
- break;
- terminator = where + strlen(extension);
- if (where == start || *(where - 1) == ' ') {
- if (*terminator == ' ' || *terminator == '\0') {
- return 1;
- }
- }
- start = terminator;
- }
- return 0;
-}