mesa: pass context parameter to gl_renderbuffer::Delete()
authorBrian Paul <brianp@vmware.com>
Fri, 30 Nov 2012 17:04:48 +0000 (10:04 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 30 Nov 2012 19:08:06 +0000 (12:08 -0700)
commitc73245882c7ff1277b190b97f093f7b423a22f10
treecc42fc6cc7cd175407d511e845f75c49383936fc
parentca3ed3e024864e91ca3cccc59fb96950e1d079b5
mesa: pass context parameter to gl_renderbuffer::Delete()

We sometimes need a rendering context when deleting renderbuffers.
Pass it explicitly instead of trying to grab a current context
(which might be NULL).  The next patch will make use of this.

Note: this is a candidate for the stable branches.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
15 files changed:
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/drivers/osmesa/osmesa.c
src/mesa/drivers/windows/gdi/wmesa.c
src/mesa/drivers/x11/xm_buffer.c
src/mesa/main/fbobject.c
src/mesa/main/mtypes.h
src/mesa/main/renderbuffer.c
src/mesa/main/renderbuffer.h
src/mesa/main/shared.c
src/mesa/state_tracker/st_cb_fbo.c
src/mesa/swrast/s_renderbuffer.c
src/mesa/swrast/s_texrender.c