diff options
-rw-r--r-- | src/mesa/drivers/x11/xm_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/x11/xm_api.c b/src/mesa/drivers/x11/xm_api.c index be02e12a4e3..28d3d25e136 100644 --- a/src/mesa/drivers/x11/xm_api.c +++ b/src/mesa/drivers/x11/xm_api.c @@ -1,4 +1,4 @@ -/* $Id: xm_api.c,v 1.31 2002/02/15 19:15:33 brianp Exp $ */ +/* $Id: xm_api.c,v 1.32 2002/02/20 23:59:03 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -2605,7 +2605,7 @@ void XMesaGarbageCollect( void ) XMesaBuffer b, next; for (b=XMesaBufferList; b; b=next) { next = b->Next; - if (!b->pixmap_flag) { + if (b->display && b->frontbuffer && !b->pixmap_flag) { #ifdef XFree86Server /* NOT_NEEDED */ #else |