20 lines
586 B
Diff
20 lines
586 B
Diff
commit f04979ae481acc9fdc423da06514c4d557edd7cd
|
|
Author: Mathias Hopf <mhopf@suse.de>
|
|
Date: Fri Mar 16 08:28:34 2007 -0600
|
|
|
|
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 cbbbd56..ba020fc 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);
|
|
}
|
|
|