[Mesa-dev] [PATCH] RE: Mesa garbage collection and threads
Tolga Dalman
tolga.dalman at googlemail.com
Sat Feb 12 16:10:09 PST 2011
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
More information about the mesa-dev
mailing list