mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-24 18:54:10 +08:00
check for initialized XMesaBuffer in XMesaGarbageCollect()
This commit is contained in:
parent
ad7306b23c
commit
d0271502f8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user