added null xmctx check to XMesaResizeBuffers(), bug 7205
authorMathias Hopf <mhopf@suse.de>
Fri, 16 Mar 2007 14:28:34 +0000 (08:28 -0600)
committerBrian <brian@yutani.localnet.net>
Fri, 16 Mar 2007 14:28:34 +0000 (08:28 -0600)
src/mesa/drivers/x11/xm_api.c

index cbbbd56efd5461776c3b207bbb0c05fae8eda78c..ba020fc3d6a86a2f85a5086b92db96beb15e5705 100644 (file)
@@ -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);
 }