On 02/11/11 16:31, Andy Skinner wrote:
> -void XMesaGarbageCollect( void )
> +void XMesaGarbageCollect( XMesaDisplay* dpy )
>  {
>     XMesaBuffer b, next;
>     for (b=XMesaBufferList; b; b=next) {
>        next = b->Next;
> -      if (b->display && b->frontxrb->drawable && b->type == WINDOW) {
> +      if (b->display && b->display == dpy && b->frontxrb->drawable && 
> b->type == WINDOW) {

Why not just check for dpy == NULL once at the beginning and leave out the
b->display check then ?

Best regards
Tolga Dalman
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to