From: Brian Paul Date: Fri, 6 May 2005 15:23:54 +0000 (+0000) Subject: remove bad assertion, added new ones in clear_pixmap() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b1d0ac64ab2e8285fd8a1f6b52f86a967162ae35;p=mesa.git remove bad assertion, added new ones in clear_pixmap() --- diff --git a/src/mesa/drivers/x11/xm_dd.c b/src/mesa/drivers/x11/xm_dd.c index f9eb877db97..5b3c89c1dd0 100644 --- a/src/mesa/drivers/x11/xm_dd.c +++ b/src/mesa/drivers/x11/xm_dd.c @@ -307,8 +307,12 @@ clear_pixmap(GLcontext *ctx, struct xmesa_renderbuffer *xrb, GLboolean all, const XMesaContext xmesa = XMESA_CONTEXT(ctx); XMesaBuffer xmbuf = XMESA_BUFFER(ctx->DrawBuffer); - assert(xrb->pixmap == xmbuf->backxrb->pixmap || - xrb->pixmap == xmbuf->frontxrb->pixmap); + assert(xmbuf); + assert(xrb->pixmap); + assert(xmesa); + assert(xmesa->display); + assert(xrb->pixmap); + assert(xmbuf->cleargc); if (all) { XMesaFillRectangle( xmesa->display, xrb->pixmap, xmbuf->cleargc,