diff options
Diffstat (limited to 'glamor/glamor_core.c')
-rw-r--r-- | glamor/glamor_core.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/glamor/glamor_core.c b/glamor/glamor_core.c index 6c0b3c834..eeaa5956f 100644 --- a/glamor/glamor_core.c +++ b/glamor/glamor_core.c @@ -559,28 +559,6 @@ glamor_bitmap_to_region(PixmapPtr pixmap) return ret; } -/* Borrow from cairo. */ -Bool -glamor_gl_has_extension(const char *extension) -{ - const char *pext; - int ext_len; - - ext_len = strlen(extension); - - pext = (const char *) glGetString(GL_EXTENSIONS); - - if (pext == NULL || extension == NULL) - return FALSE; - - while ((pext = strstr(pext, extension)) != NULL) { - if (pext[ext_len] == ' ' || pext[ext_len] == '\0') - return TRUE; - pext += ext_len; - } - return FALSE; -} - int glamor_gl_get_version(void) { |