diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2002-02-20 23:59:03 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2002-02-20 23:59:03 +0000 |
commit | d0271502f81a24cbe5959e1159eddba49b7d66ce (patch) | |
tree | f5e9513eb3ed6393173adff57ec1c6ee98ef35f5 /src/mesa/drivers/x11 | |
parent | ad7306b23cbcc55cb9c943de8da2e3f80b3b46c4 (diff) |
check for initialized XMesaBuffer in XMesaGarbageCollect()
Diffstat (limited to 'src/mesa/drivers/x11')
-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 be02e12a4e..28d3d25e13 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 |