OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c645739
)
remove bad assertion, added new ones in clear_pixmap()
author
Brian Paul
<brian.paul@tungstengraphics.com>
Fri, 6 May 2005 15:23:54 +0000
(15:23 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Fri, 6 May 2005 15:23:54 +0000
(15:23 +0000)
src/mesa/drivers/x11/xm_dd.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/x11/xm_dd.c
b/src/mesa/drivers/x11/xm_dd.c
index
f9eb877
..
5b3c89c
100644
(file)
--- 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,