diff options
Diffstat (limited to 'hw')
-rw-r--r-- | hw/dmx/glxProxy/glxscreens.h | 1 | ||||
-rw-r--r-- | hw/xquartz/GL/indirect.c | 3 | ||||
-rw-r--r-- | hw/xwin/glx/indirect.c | 8 |
3 files changed, 4 insertions, 8 deletions
diff --git a/hw/dmx/glxProxy/glxscreens.h b/hw/dmx/glxProxy/glxscreens.h index a57c387fe..da50bdc85 100644 --- a/hw/dmx/glxProxy/glxscreens.h +++ b/hw/dmx/glxProxy/glxscreens.h @@ -43,7 +43,6 @@ typedef struct { GLint *isGLXvis; char *GLXvendor; - char *GLXversion; char *GLXextensions; } __GLXscreenInfo; diff --git a/hw/xquartz/GL/indirect.c b/hw/xquartz/GL/indirect.c index 41168729f..4876ab992 100644 --- a/hw/xquartz/GL/indirect.c +++ b/hw/xquartz/GL/indirect.c @@ -477,7 +477,8 @@ static __GLXscreen * __glXAquaScreenProbe(ScreenPtr pScreen) { __glXScreenInit(&screen->base, pScreen); - screen->base.GLXversion = strdup("1.4"); + screen->base.GLXmajor = 1; + screen->base.GLXminor = 4; screen->base.GLXextensions = strdup("GLX_SGIX_fbconfig " "GLX_SGIS_multisample " "GLX_ARB_multisample " diff --git a/hw/xwin/glx/indirect.c b/hw/xwin/glx/indirect.c index 235e96b5d..86fef55d1 100644 --- a/hw/xwin/glx/indirect.c +++ b/hw/xwin/glx/indirect.c @@ -735,30 +735,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); |