From df1dacf093058e74ec102d8828d2751a9ed6e34e Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Sat, 11 Jun 2011 23:43:03 -0700 Subject: apple: Store the CGL API version number for future reference Signed-off-by: Jeremy Huddleston --- src/glx/apple/apple_cgl.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/glx/apple/apple_cgl.c') diff --git a/src/glx/apple/apple_cgl.c b/src/glx/apple/apple_cgl.c index 737d757ed52..648ed869497 100644 --- a/src/glx/apple/apple_cgl.c +++ b/src/glx/apple/apple_cgl.c @@ -64,7 +64,6 @@ void apple_cgl_init(void) { void *h; - GLint major = 0, minor = 0; const char *opengl_framework_path; if (initialized) @@ -88,11 +87,11 @@ apple_cgl_init(void) apple_cgl.get_version = sym(h, "CGLGetVersion"); - apple_cgl.get_version(&major, &minor); + apple_cgl.get_version(&apple_cgl.version_major, &apple_cgl.version_minor); - apple_glx_diagnostic("CGL major %d minor %d\n", major, minor); + apple_glx_diagnostic("CGL major %d minor %d\n", apple_cgl.version_major, apple_cgl.version_minor); - if (1 != major) { + if (1 != apple_cgl.version_major) { fprintf(stderr, "WARNING: the CGL major version has changed!\n" "libGL may be incompatible!\n"); } -- cgit v1.2.3