From: Mathias Hopf Date: Fri, 16 Mar 2007 14:28:34 +0000 (-0600) Subject: added null xmctx check to XMesaResizeBuffers(), bug 7205 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f04979ae481acc9fdc423da06514c4d557edd7cd;p=mesa.git added null xmctx check to XMesaResizeBuffers(), bug 7205 --- 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); }