mesa: fix-up and use _mesa_delete_renderbuffer()
authorBrian Paul <brianp@vmware.com>
Thu, 30 Aug 2012 15:27:16 +0000 (09:27 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 31 Aug 2012 14:04:40 +0000 (08:04 -0600)
commit8472bb4508515cf0f717344ef5cc863b6e97e56a
treef3c65fc4fabdba447998c34eed021b043676a39a
parent2d2f1fd164218eacf2b142bc808be1f25f66e72c
mesa: fix-up and use _mesa_delete_renderbuffer()

_mesa_delete_renderbuffer() should free the mutex (though that may be a
no-op) and then free the renderbuffer object itself.  Subclasses of
gl_renderbuffer can use this function too.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/mesa/drivers/dri/intel/intel_fbo.c
src/mesa/drivers/dri/nouveau/nouveau_fbo.c
src/mesa/drivers/dri/radeon/radeon_fbo.c
src/mesa/drivers/dri/swrast/swrast.c
src/mesa/main/renderbuffer.c
src/mesa/state_tracker/st_cb_fbo.c
src/mesa/swrast/s_renderbuffer.c