aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/hw/xwin
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-03-07 08:34:35 +0000
committermarha <marha@users.sourceforge.net>2011-03-07 08:34:35 +0000
commit036a5b11200fe8371bc2ebfb6a7b31ab43faff50 (patch)
treed128aa24a93f577c27f1081b3dc67cfb894292c7 /xorg-server/hw/xwin
parentbba08fdb8faad9f65b3ea2133676b9f6263aef37 (diff)
downloadvcxsrv-036a5b11200fe8371bc2ebfb6a7b31ab43faff50.tar.gz
vcxsrv-036a5b11200fe8371bc2ebfb6a7b31ab43faff50.tar.bz2
vcxsrv-036a5b11200fe8371bc2ebfb6a7b31ab43faff50.zip
Remove GLXversion
Diffstat (limited to 'xorg-server/hw/xwin')
-rw-r--r--xorg-server/hw/xwin/glx/indirect.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/xorg-server/hw/xwin/glx/indirect.c b/xorg-server/hw/xwin/glx/indirect.c
index 4367d6990..84d4a34c6 100644
--- a/xorg-server/hw/xwin/glx/indirect.c
+++ b/xorg-server/hw/xwin/glx/indirect.c
@@ -777,30 +777,26 @@ glxWinScreenProbe(ScreenPtr pScreen)
//
// Override the GLX version (__glXScreenInit() sets it to "1.2")
- // if we have all the needed extensionsto operate as a higher version
+ // if we have all the needed extensions to operate as a higher version
//
// SGIX_fbconfig && SGIX_pbuffer && SGI_make_current_read -> 1.3
// ARB_multisample -> 1.4
//
if (screen->has_WGL_ARB_pbuffer && glx_sgi_make_current_read)
{
- free(screen->base.GLXversion);
-
if (screen->has_WGL_ARB_multisample)
{
- screen->base.GLXversion = strdup("1.4");
screen->base.GLXmajor = 1;
screen->base.GLXminor = 4;
}
else
{
- screen->base.GLXversion = strdup("1.3");
screen->base.GLXmajor = 1;
screen->base.GLXminor = 3;
}
- LogMessage(X_INFO, "AIGLX: Set GLX version to %s\n", screen->base.GLXversion);
}
}
+ LogMessage(X_INFO, "AIGLX: Set GLX version to %d.%d\n", screen->base.GLXmajor, screen->base.GLXminor);
wglMakeCurrent(NULL, NULL);
wglDeleteContext(hglrc);