glx: Remove some redundant zero-init of GLX context state
The context is already calloc'd. Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
d5ba095982
commit
0ebb58f6b6
|
@ -315,16 +315,8 @@ __glXDisp_CreateContextAttribsARB(__GLXclientState * cl, GLbyte * pc)
|
||||||
ctx->id = req->context;
|
ctx->id = req->context;
|
||||||
ctx->share_id = req->shareList;
|
ctx->share_id = req->shareList;
|
||||||
ctx->idExists = True;
|
ctx->idExists = True;
|
||||||
ctx->currentClient = False;
|
|
||||||
ctx->isDirect = req->isDirect;
|
ctx->isDirect = req->isDirect;
|
||||||
ctx->hasUnflushedCommands = False;
|
|
||||||
ctx->renderMode = GL_RENDER;
|
ctx->renderMode = GL_RENDER;
|
||||||
ctx->feedbackBuf = NULL;
|
|
||||||
ctx->feedbackBufSize = 0;
|
|
||||||
ctx->selectBuf = NULL;
|
|
||||||
ctx->selectBufSize = 0;
|
|
||||||
ctx->drawPriv = NULL;
|
|
||||||
ctx->readPriv = NULL;
|
|
||||||
ctx->resetNotificationStrategy = reset;
|
ctx->resetNotificationStrategy = reset;
|
||||||
#ifdef GLX_CONTEXT_RELEASE_BEHAVIOR_ARB
|
#ifdef GLX_CONTEXT_RELEASE_BEHAVIOR_ARB
|
||||||
ctx->releaseBehavior = flush;
|
ctx->releaseBehavior = flush;
|
||||||
|
|
|
@ -314,16 +314,8 @@ DoCreateContext(__GLXclientState * cl, GLXContextID gcId,
|
||||||
glxc->id = gcId;
|
glxc->id = gcId;
|
||||||
glxc->share_id = shareList;
|
glxc->share_id = shareList;
|
||||||
glxc->idExists = GL_TRUE;
|
glxc->idExists = GL_TRUE;
|
||||||
glxc->currentClient = NULL;
|
|
||||||
glxc->isDirect = isDirect;
|
glxc->isDirect = isDirect;
|
||||||
glxc->hasUnflushedCommands = GL_FALSE;
|
|
||||||
glxc->renderMode = GL_RENDER;
|
glxc->renderMode = GL_RENDER;
|
||||||
glxc->feedbackBuf = NULL;
|
|
||||||
glxc->feedbackBufSize = 0;
|
|
||||||
glxc->selectBuf = NULL;
|
|
||||||
glxc->selectBufSize = 0;
|
|
||||||
glxc->drawPriv = NULL;
|
|
||||||
glxc->readPriv = NULL;
|
|
||||||
|
|
||||||
/* The GLX_ARB_create_context_robustness spec says:
|
/* The GLX_ARB_create_context_robustness spec says:
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue