From ee2761f2f33f95330f087977c54fa8bcb2859202 Mon Sep 17 00:00:00 2001 From: Alan Hourihane Date: Wed, 5 Jan 2005 21:49:52 +0000 Subject: [PATCH] Only try to free the front buffer when it's a pbuffer. --- src/mesa/drivers/dri/unichrome/via_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/unichrome/via_context.c b/src/mesa/drivers/dri/unichrome/via_context.c index 4b675e5c707..dde78c2dc90 100644 --- a/src/mesa/drivers/dri/unichrome/via_context.c +++ b/src/mesa/drivers/dri/unichrome/via_context.c @@ -296,7 +296,7 @@ AllocateDmaBuffer(const GLvisual *visual, viaContextPtr vmesa) static void FreeBuffer(viaContextPtr vmesa) { - if (vmesa->front.map) + if (vmesa->front.map && vmesa->drawType == GLX_PBUFFER_BIT) via_free_draw_buffer(vmesa, &vmesa->front); if (vmesa->back.map) -- 2.30.2