remove bad assertion, added new ones in clear_pixmap()

This commit is contained in:
Brian Paul 2005-05-06 15:23:54 +00:00
parent c64573997c
commit b1d0ac64ab

View file

@ -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,