_mesa_free_framebuffer_data() call frees the renderbuffers, no need to call the Delet...
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 9 Aug 2005 15:07:55 +0000 (15:07 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 9 Aug 2005 15:07:55 +0000 (15:07 +0000)
src/mesa/drivers/x11/xm_api.c

index 675d2ebb548a13333a5e5162255d5cc5d8cf2abb..4e71830afe54743ba82ca2f98ca8f4880c08f810 100644 (file)
@@ -441,10 +441,6 @@ static void free_xmesa_buffer(int client, XMesaBuffer buffer)
          }
 
          _mesa_free_framebuffer_data(&buffer->mesa_buffer);
-         /* delete front/back renderbuffers */
-         buffer->frontxrb->Base.Delete(&(buffer->frontxrb->Base));
-         if (buffer->backxrb)
-            buffer->backxrb->Base.Delete(&(buffer->backxrb->Base));
          _mesa_free(buffer);
 
          return;