Clean up unused pVisual part of __GLXcontext.
This commit is contained in:
parent
30bcaa966d
commit
f62277d421
|
@ -190,7 +190,6 @@ DoCreateContext(__GLXclientState *cl, GLXContextID gcId,
|
||||||
__GLXscreen *pGlxScreen, GLboolean isDirect)
|
__GLXscreen *pGlxScreen, GLboolean isDirect)
|
||||||
{
|
{
|
||||||
ClientPtr client = cl->client;
|
ClientPtr client = cl->client;
|
||||||
VisualPtr pVisual;
|
|
||||||
__GLXcontext *glxc, *shareglxc;
|
__GLXcontext *glxc, *shareglxc;
|
||||||
|
|
||||||
LEGAL_NEW_RESOURCE(gcId, client);
|
LEGAL_NEW_RESOURCE(gcId, client);
|
||||||
|
@ -250,7 +249,6 @@ DoCreateContext(__GLXclientState *cl, GLXContextID gcId,
|
||||||
*/
|
*/
|
||||||
glxc->pScreen = pGlxScreen->pScreen;
|
glxc->pScreen = pGlxScreen->pScreen;
|
||||||
glxc->pGlxScreen = pGlxScreen;
|
glxc->pGlxScreen = pGlxScreen;
|
||||||
glxc->pVisual = pVisual;
|
|
||||||
glxc->modes = config;
|
glxc->modes = config;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1470,7 +1468,7 @@ DoQueryContext(__GLXclientState *cl, GLXContextID gcId)
|
||||||
*pSendBuf++ = GLX_SHARE_CONTEXT_EXT;
|
*pSendBuf++ = GLX_SHARE_CONTEXT_EXT;
|
||||||
*pSendBuf++ = (int)(ctx->share_id);
|
*pSendBuf++ = (int)(ctx->share_id);
|
||||||
*pSendBuf++ = GLX_VISUAL_ID_EXT;
|
*pSendBuf++ = GLX_VISUAL_ID_EXT;
|
||||||
*pSendBuf++ = (int)(ctx->pVisual->vid);
|
*pSendBuf++ = (int)(ctx->modes->visualID);
|
||||||
*pSendBuf++ = GLX_SCREEN_EXT;
|
*pSendBuf++ = GLX_SCREEN_EXT;
|
||||||
*pSendBuf++ = (int)(ctx->pScreen->myNum);
|
*pSendBuf++ = (int)(ctx->pScreen->myNum);
|
||||||
|
|
||||||
|
|
|
@ -88,11 +88,6 @@ struct __GLXcontext {
|
||||||
ScreenPtr pScreen;
|
ScreenPtr pScreen;
|
||||||
__GLXscreen *pGlxScreen;
|
__GLXscreen *pGlxScreen;
|
||||||
|
|
||||||
/*
|
|
||||||
** This context is created with respect to this visual.
|
|
||||||
*/
|
|
||||||
VisualRec *pVisual;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** The XID of this context.
|
** The XID of this context.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue