summaryrefslogtreecommitdiff
path: root/glx/createcontext.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2016-03-31 16:20:40 -0400
committerAdam Jackson <ajax@redhat.com>2016-05-11 11:23:20 -0400
commit0ebb58f6b6f66afbc3a48bd10693fe190aed8694 (patch)
tree97ff1d492faad6c003d3952f21563a5f0ebb18e2 /glx/createcontext.c
parentd5ba09598210063926aeff55ac58d2b7020d9a03 (diff)
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>
Diffstat (limited to 'glx/createcontext.c')
-rw-r--r--glx/createcontext.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/glx/createcontext.c b/glx/createcontext.c
index 9157e2fb8..c8b36ebb0 100644
--- a/glx/createcontext.c
+++ b/glx/createcontext.c
@@ -315,16 +315,8 @@ __glXDisp_CreateContextAttribsARB(__GLXclientState * cl, GLbyte * pc)
ctx->id = req->context;
ctx->share_id = req->shareList;
ctx->idExists = True;
- ctx->currentClient = False;
ctx->isDirect = req->isDirect;
- ctx->hasUnflushedCommands = False;
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;
#ifdef GLX_CONTEXT_RELEASE_BEHAVIOR_ARB
ctx->releaseBehavior = flush;