diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2011-12-10 15:11:57 -0800 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2012-05-23 13:08:12 -0700 |
commit | c1d91ab37025d3e0df7e8f647fb21816fe0e8420 (patch) | |
tree | 9b652d5b96e4291ece140857328201d2ded1b1cb /glx/glxcmds.c | |
parent | 0db76e5f771fb964e67de716a254850a38e02f19 (diff) |
glx: Initialize remaining context fields
There is no reason to assume the screen's context allocated
initialized these fields, so don't.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Reviewed-by: Christopher James Halse Rogers <christopher.halse.rogers@canonical.com>
Diffstat (limited to 'glx/glxcmds.c')
-rw-r--r-- | glx/glxcmds.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/glx/glxcmds.c b/glx/glxcmds.c index 571ae50b5..8a9a1d3b0 100644 --- a/glx/glxcmds.c +++ b/glx/glxcmds.c @@ -299,7 +299,14 @@ DoCreateContext(__GLXclientState * cl, GLXContextID gcId, glxc->idExists = GL_TRUE; glxc->isCurrent = GL_FALSE; glxc->isDirect = isDirect; + glxc->hasUnflushedCommands = GL_FALSE; glxc->renderMode = GL_RENDER; + glxc->feedbackBuf = NULL; + glxc->feedbackBufSize = 0; + glxc->selectBuf = NULL; + glxc->selectBufSize = 0; + glxc->drawPriv = NULL; + glxc->readPriv = NULL; /* Register this context as a resource. */ |