From c1d91ab37025d3e0df7e8f647fb21816fe0e8420 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Sat, 10 Dec 2011 15:11:57 -0800 Subject: [PATCH] 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 Reviewed-by: Jesse Barnes Reviewed-by: Christopher James Halse Rogers --- glx/glxcmds.c | 7 +++++++ 1 file changed, 7 insertions(+) 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. */