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>
This commit is contained in:
Ian Romanick 2011-12-10 15:11:57 -08:00
parent 0db76e5f77
commit c1d91ab370

View File

@ -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.
*/