added null xmctx check to XMesaResizeBuffers(), bug 7205

This commit is contained in:
Mathias Hopf 2007-03-16 08:28:34 -06:00 committed by Brian
parent 95764262a7
commit f04979ae48

View 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);
}