From d0271502f81a24cbe5959e1159eddba49b7d66ce Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 20 Feb 2002 23:59:03 +0000 Subject: check for initialized XMesaBuffer in XMesaGarbageCollect() --- src/mesa/drivers/x11/xm_api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mesa/drivers') 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 -- cgit v1.2.3