From: Thomas Henn Date: Wed, 26 Nov 2008 16:49:32 +0000 (-0700) Subject: windows: fix _mesa_unreference_framebuffer() to pass ** type. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=279343059f8ec676afc1713f9d15030ba06f4a07;p=mesa.git windows: fix _mesa_unreference_framebuffer() to pass ** type. --- diff --git a/src/mesa/drivers/windows/gdi/wmesa.c b/src/mesa/drivers/windows/gdi/wmesa.c index 1ddea33e35c..42432d6064f 100644 --- a/src/mesa/drivers/windows/gdi/wmesa.c +++ b/src/mesa/drivers/windows/gdi/wmesa.c @@ -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); } }