diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2005-05-06 15:23:54 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2005-05-06 15:23:54 +0000 |
commit | b1d0ac64ab2e8285fd8a1f6b52f86a967162ae35 (patch) | |
tree | 99760794c8d80f4da0d8b3775da28d87e981f5ed | |
parent | c64573997c4cfb13de5d82f6f83040b206bf6fd0 (diff) | |
download | external_mesa3d-b1d0ac64ab2e8285fd8a1f6b52f86a967162ae35.zip external_mesa3d-b1d0ac64ab2e8285fd8a1f6b52f86a967162ae35.tar.gz external_mesa3d-b1d0ac64ab2e8285fd8a1f6b52f86a967162ae35.tar.bz2 |
remove bad assertion, added new ones in clear_pixmap()
-rw-r--r-- | src/mesa/drivers/x11/xm_dd.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mesa/drivers/x11/xm_dd.c b/src/mesa/drivers/x11/xm_dd.c index f9eb877..5b3c89c 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, |