summaryrefslogtreecommitdiff
path: root/glamor/glamor_core.c
diff options
context:
space:
mode:
authorMarkus Wick <markus@selfnet.de>2014-03-18 09:42:50 +0100
committerEric Anholt <eric@anholt.net>2014-03-26 12:58:39 -0700
commit15d36444acc7a2890ade8e320dc16d627a9d2035 (patch)
tree8ef1d4b31077f799179d19f25ec5acd8e7597ad2 /glamor/glamor_core.c
parent9d87f66e862a521553d48aa73e5ee97431d36ad3 (diff)
glamor: Use epoxy_gl_version() 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.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/glamor/glamor_core.c b/glamor/glamor_core.c
index eeaa5956f..5711be72f 100644
--- a/glamor/glamor_core.c
+++ b/glamor/glamor_core.c
@@ -559,26 +559,3 @@ glamor_bitmap_to_region(PixmapPtr pixmap)
return ret;
}
-int
-glamor_gl_get_version(void)
-{
- int major, minor;
- const char *version = (const char *) glGetString(GL_VERSION);
- const char *dot = version == NULL ? NULL : strchr(version, '.');
- const char *major_start = dot;
-
- /* Sanity check */
- if (dot == NULL || dot == version || *(dot + 1) == '\0') {
- major = 0;
- minor = 0;
- }
- else {
- /* Find the start of the major version in the string */
- while (major_start > version && *major_start != ' ')
- --major_start;
- major = strtol(major_start, NULL, 10);
- minor = strtol(dot + 1, NULL, 10);
- }
-
- return GLAMOR_GL_VERSION_ENCODE(major, minor);
-}