summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/x11
diff options
context:
space:
mode:
authorMathias Hopf <[email protected]>2007-03-16 08:28:34 -0600
committerBrian <[email protected]>2007-03-16 08:28:34 -0600
commitf04979ae481acc9fdc423da06514c4d557edd7cd (patch)
treebd5bf002ef1d94f5171eafb454f874be8cb06e57 /src/mesa/drivers/x11
parent95764262a7f2dfda761a0dbd87c3d9b12df0d534 (diff)
added null xmctx check to XMesaResizeBuffers(), bug 7205
Diffstat (limited to 'src/mesa/drivers/x11')
-rw-r--r--src/mesa/drivers/x11/xm_api.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/x11/xm_api.c b/src/mesa/drivers/x11/xm_api.c
index cbbbd56efd5..ba020fc3d6a 100644
--- a/src/mesa/drivers/x11/xm_api.c
+++ b/src/mesa/drivers/x11/xm_api.c
@@ -2499,6 +2499,8 @@ XMesaResizeBuffers( XMesaBuffer b )
{
GET_CURRENT_CONTEXT(ctx);
XMesaContext xmctx = XMESA_CONTEXT(ctx);
+ if (!xmctx)
+ return;
xmesa_check_and_update_buffer_size(xmctx, b);
}