windows: fix _mesa_unreference_framebuffer() to pass ** type.
authorThomas Henn <thomas.henn@igd.fraunhofer.de>
Wed, 26 Nov 2008 16:49:32 +0000 (09:49 -0700)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 26 Nov 2008 16:49:32 +0000 (09:49 -0700)
src/mesa/drivers/windows/gdi/wmesa.c

index 1ddea33e35c2f008cafc0628b6b3d05685b6fddf..42432d6064f466ccd9112d173e15eab2eeff12f9 100644 (file)
@@ -56,11 +56,13 @@ wmesa_free_framebuffer(HDC hdc)
        prev = pwfb;
     }
     if (pwfb) {
+        struct gl_framebuffer *fb;
        if (pwfb == FirstFramebuffer)
            FirstFramebuffer = pwfb->next;
        else
            prev->next = pwfb->next;
-        _mesa_unreference_framebuffer(&pwfb->Base);
+        fb = &pwfb->Base;
+        _mesa_unreference_framebuffer(&fb); 
     }
 }