From f62277d421023b3150d3a1accb00a8206ab2bde3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Thu, 25 Oct 2007 18:48:39 -0400 Subject: [PATCH] Clean up unused pVisual part of __GLXcontext. --- GL/glx/glxcmds.c | 4 +--- GL/glx/glxcontext.h | 5 ----- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/GL/glx/glxcmds.c b/GL/glx/glxcmds.c index 992ddbce5..4a77b3ee6 100644 --- a/GL/glx/glxcmds.c +++ b/GL/glx/glxcmds.c @@ -190,7 +190,6 @@ DoCreateContext(__GLXclientState *cl, GLXContextID gcId, __GLXscreen *pGlxScreen, GLboolean isDirect) { ClientPtr client = cl->client; - VisualPtr pVisual; __GLXcontext *glxc, *shareglxc; LEGAL_NEW_RESOURCE(gcId, client); @@ -250,7 +249,6 @@ DoCreateContext(__GLXclientState *cl, GLXContextID gcId, */ glxc->pScreen = pGlxScreen->pScreen; glxc->pGlxScreen = pGlxScreen; - glxc->pVisual = pVisual; glxc->modes = config; /* @@ -1470,7 +1468,7 @@ DoQueryContext(__GLXclientState *cl, GLXContextID gcId) *pSendBuf++ = GLX_SHARE_CONTEXT_EXT; *pSendBuf++ = (int)(ctx->share_id); *pSendBuf++ = GLX_VISUAL_ID_EXT; - *pSendBuf++ = (int)(ctx->pVisual->vid); + *pSendBuf++ = (int)(ctx->modes->visualID); *pSendBuf++ = GLX_SCREEN_EXT; *pSendBuf++ = (int)(ctx->pScreen->myNum); diff --git a/GL/glx/glxcontext.h b/GL/glx/glxcontext.h index 712264729..cf944a174 100644 --- a/GL/glx/glxcontext.h +++ b/GL/glx/glxcontext.h @@ -88,11 +88,6 @@ struct __GLXcontext { ScreenPtr pScreen; __GLXscreen *pGlxScreen; - /* - ** This context is created with respect to this visual. - */ - VisualRec *pVisual; - /* ** The XID of this context. */