aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/hw/xwin
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-10-28 16:04:58 +0200
committermarha <marha@users.sourceforge.net>2011-10-28 16:04:58 +0200
commit125500b44d0253d7fd7a59905ab730151d4f66e2 (patch)
tree2a13d2b6d40db1cda9b9f08e36e0f62d25536cdf /xorg-server/hw/xwin
parentd2a31932bb4eaa04572dcf646a2967c638a47144 (diff)
downloadvcxsrv-125500b44d0253d7fd7a59905ab730151d4f66e2.tar.gz
vcxsrv-125500b44d0253d7fd7a59905ab730151d4f66e2.tar.bz2
vcxsrv-125500b44d0253d7fd7a59905ab730151d4f66e2.zip
Solved crash due to NULL pointer
Diffstat (limited to 'xorg-server/hw/xwin')
-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)
{