summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2018-02-24 13:39:16 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2018-02-24 13:39:16 +0000
commit60bb7672c10494aa6521ba3a157989cccc3490a2 (patch)
treead085348a188965d47f6bdb82617f5018a31f1be /src
parent309142f2443327b9824e49b751e954f1e39db294 (diff)
downloadlibepoxy-60bb7672c10494aa6521ba3a157989cccc3490a2.tar.gz
Fix epoxy_internal_gl_version()
The glGetString() function takes a GLenum, so we should too.
Diffstat (limited to 'src')
-rw-r--r--src/dispatch_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dispatch_common.c b/src/dispatch_common.c
index dc494c4..d8baeee 100644
--- a/src/dispatch_common.c
+++ b/src/dispatch_common.c
@@ -392,7 +392,7 @@ epoxy_is_desktop_gl(void)
}
static int
-epoxy_internal_gl_version(const char *version_string, int error_version)
+epoxy_internal_gl_version(GLenum version_string, int error_version)
{
const char *version = (const char *)glGetString(version_string);
GLint major, minor;