diff options
Diffstat (limited to 'glx')
-rw-r--r-- | glx/glxcmds.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/glx/glxcmds.c b/glx/glxcmds.c index af52672f1..33954ee64 100644 --- a/glx/glxcmds.c +++ b/glx/glxcmds.c @@ -146,6 +146,8 @@ __glXContextDestroy(__GLXcontext *context) __glXUnrefDrawable(context->drawPriv); if (context->readPriv) __glXUnrefDrawable(context->readPriv); + context->drawPriv = NULL; + context->readPriv = NULL; } __glXFlushContextCache(); } @@ -621,6 +623,8 @@ DoMakeCurrent(__GLXclientState *cl, __glXUnrefDrawable(prevglxc->drawPriv); if (prevglxc->readPriv) __glXUnrefDrawable(prevglxc->readPriv); + prevglxc->drawPriv = NULL; + prevglxc->readPriv = NULL; } } |