summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/x11
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-05-06 15:23:54 +0000
committerBrian Paul <[email protected]>2005-05-06 15:23:54 +0000
commitb1d0ac64ab2e8285fd8a1f6b52f86a967162ae35 (patch)
tree99760794c8d80f4da0d8b3775da28d87e981f5ed /src/mesa/drivers/x11
parentc64573997c4cfb13de5d82f6f83040b206bf6fd0 (diff)
remove bad assertion, added new ones in clear_pixmap()
Diffstat (limited to 'src/mesa/drivers/x11')
-rw-r--r--src/mesa/drivers/x11/xm_dd.c8
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 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,