aboutsummaryrefslogtreecommitdiff
path: root/xorg-server
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server')
-rw-r--r--xorg-server/hw/xwin/glx/indirect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xorg-server/hw/xwin/glx/indirect.c b/xorg-server/hw/xwin/glx/indirect.c
index 7dc5f31b7..f9d623cb2 100644
--- a/xorg-server/hw/xwin/glx/indirect.c
+++ b/xorg-server/hw/xwin/glx/indirect.c
@@ -1681,7 +1681,7 @@ glxWinContextLoseCurrent(__GLXcontext *base)
#endif
/* Clear the last active context in the drawable */
- drawPriv->drawContext = NULL;
+ if (drawPriv) drawPriv->drawContext = NULL;
if (wglGetCurrentContext()==gc->ctx)
{