Only try to free the front buffer when it's a pbuffer.

This commit is contained in:
Alan Hourihane 2005-01-05 21:49:52 +00:00
parent 699fc6baf9
commit ee2761f2f3
1 changed files with 1 additions and 1 deletions

View File

@ -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)