summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/unichrome
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@tungstengraphics.com>2005-01-05 21:49:52 +0000
committerAlan Hourihane <alanh@tungstengraphics.com>2005-01-05 21:49:52 +0000
commitee2761f2f33f95330f087977c54fa8bcb2859202 (patch)
tree25f460fbacf2d5e480606c0b8df333cd9542bd07 /src/mesa/drivers/dri/unichrome
parent699fc6baf99f2997d7405651c84d0ea0b7e6423a (diff)
Only try to free the front buffer when it's a pbuffer.
Diffstat (limited to 'src/mesa/drivers/dri/unichrome')
-rw-r--r--src/mesa/drivers/dri/unichrome/via_context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/unichrome/via_context.c b/src/mesa/drivers/dri/unichrome/via_context.c
index 4b675e5c70..dde78c2dc9 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)