diff options
author | Alan Hourihane <[email protected]> | 2008-11-28 16:19:10 +0000 |
---|---|---|
committer | Alan Hourihane <[email protected]> | 2008-11-28 16:19:10 +0000 |
commit | c4c86bbd16688ee4a0afb32efa27ba52abceb1ca (patch) | |
tree | 6b16fae74e49122a86ecf18b4a427b80d5a8e812 /src/mesa/drivers | |
parent | 5b714723895d321db753f896576de5e2c27778c3 (diff) | |
parent | c303e7299b5f95d4728c3710c56f50b1fefca09d (diff) |
Merge commit 'origin/master' into gallium-0.2
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/windows/gdi/wmesa.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mesa/drivers/windows/gdi/wmesa.c b/src/mesa/drivers/windows/gdi/wmesa.c index 1ddea33e35c..80746950c71 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); } } @@ -1503,6 +1505,9 @@ WMesaContext WMesaCreateContext(HDC hDC, ctx = &c->gl_ctx; _mesa_initialize_context(ctx, visual, NULL, &functions, (void *)c); + /* visual no longer needed - it was copied by _mesa_initialize_context() */ + _mesa_destroy_visual(visual); + _mesa_enable_sw_extensions(ctx); _mesa_enable_1_3_extensions(ctx); _mesa_enable_1_4_extensions(ctx); |