Commit 7f5adf73 authored by Adam Jackson's avatar Adam Jackson 💣

glx: Simplify glXDestroyContext

We can just free the resource unconditionally here.  ContextGone (which
FreeResourceByType will call) already does:

    cx->idExists = GL_FALSE;
    if (!cx->currentClient) {
Reviewed-by: default avatarIan Romanick <>
Signed-off-by: Adam Jackson's avatarAdam Jackson <>
parent 53653f48
......@@ -406,9 +406,7 @@ __glXDisp_DestroyContext(__GLXclientState * cl, GLbyte * pc)
&glxc, &err))
return err;
glxc->idExists = GL_FALSE;
if (!glxc->currentClient)
FreeResourceByType(req->context, __glXContextRes, FALSE);
FreeResourceByType(req->context, __glXContextRes, FALSE);
return Success;
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