diff options
author | Markus Wick <markus@selfnet.de> | 2014-03-18 09:42:49 +0100 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2014-03-26 12:58:39 -0700 |
commit | 9d87f66e862a521553d48aa73e5ee97431d36ad3 (patch) | |
tree | 7a20be7e279c26755eef73df59c283a6d01dd300 /glamor/glamor_core.c | |
parent | 708fe0625f31ad39ba54f27f04d17ed2aa621cad (diff) |
glamor: Use epoxy_has_gl_extension() instead of rolling our own.
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
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) { |