diff options
author | Mathias Hopf <[email protected]> | 2007-03-16 08:28:34 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-03-16 08:28:34 -0600 |
commit | f04979ae481acc9fdc423da06514c4d557edd7cd (patch) | |
tree | bd5bf002ef1d94f5171eafb454f874be8cb06e57 /src/mesa | |
parent | 95764262a7f2dfda761a0dbd87c3d9b12df0d534 (diff) |
added null xmctx check to XMesaResizeBuffers(), bug 7205
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/x11/xm_api.c | 2 |
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); } |