From 60bb7672c10494aa6521ba3a157989cccc3490a2 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Sat, 24 Feb 2018 13:39:16 +0000 Subject: [PATCH] Fix epoxy_internal_gl_version() The glGetString() function takes a GLenum, so we should too. --- src/dispatch_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;