mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
remove bad assertion, added new ones in clear_pixmap()
This commit is contained in:
parent
c64573997c
commit
b1d0ac64ab
1 changed files with 6 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue