Commit c1d91ab3 authored by Ian Romanick's avatar Ian Romanick
Browse files

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: default avatarIan Romanick <ian.d.romanick@intel.com>
Reviewed-by: Jesse Barnes's avatarJesse Barnes <jbarnes@virtuousgeek.org>
Reviewed-by: Christopher James Halse Rogers's avatarChristopher James Halse Rogers <christopher.halse.rogers@canonical.com>
parent 0db76e5f
......@@ -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.
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment