summaryrefslogtreecommitdiffstats
path: root/src/glx/apple/apple_cgl.c
diff options
context:
space:
mode:
authorJeremy Huddleston <[email protected]>2011-06-11 23:43:03 -0700
committerJeremy Huddleston <[email protected]>2011-06-11 23:43:03 -0700
commitdf1dacf093058e74ec102d8828d2751a9ed6e34e (patch)
tree82ba88e9b4772ef73ea76db1aa56fe88dbc651e9 /src/glx/apple/apple_cgl.c
parent02b6e97c75bf2e013064e789b70704c6376e0628 (diff)
apple: Store the CGL API version number for future reference
Signed-off-by: Jeremy Huddleston <[email protected]>
Diffstat (limited to 'src/glx/apple/apple_cgl.c')
-rw-r--r--src/glx/apple/apple_cgl.c7
1 files changed, 3 insertions, 4 deletions
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");
}