summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Henn <thomas.henn@igd.fraunhofer.de>2008-11-26 09:49:32 -0700
committerBrian Paul <brian.paul@tungstengraphics.com>2008-11-26 09:49:32 -0700
commit279343059f8ec676afc1713f9d15030ba06f4a07 (patch)
treef59049de209b1d71974b743ad66ce7cb90e57aba
parent001b1cbb0dacf76dd09cda56840c30226abd3534 (diff)
windows: fix _mesa_unreference_framebuffer() to pass ** type.
-rw-r--r--src/mesa/drivers/windows/gdi/wmesa.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/windows/gdi/wmesa.c b/src/mesa/drivers/windows/gdi/wmesa.c
index 1ddea33e35..42432d6064 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);
}
}