Fix/improve framebuffer object reference counting.
authorBrian <brian@yutani.localnet.net>
Tue, 6 Mar 2007 17:07:59 +0000 (10:07 -0700)
committerBrian <brian@yutani.localnet.net>
Tue, 6 Mar 2007 17:07:59 +0000 (10:07 -0700)
commita510bc3ee1a696da120c09ee4ec33dc033f671ac
treec4c594f5f39f060f507dc13fc5e9383956bce909
parent593802c0b0f451299ac2598c6de61e884fb44830
Fix/improve framebuffer object reference counting.

Use _mesa_reference_framebuffer() and _mesa_unreference_framebuffer() functions
to be sure reference counting is done correctly.  Additional assertions are
done too.  Note _mesa_dereference_framebuffer() renamed to "unreference" as
that's more accurate.
30 files changed:
src/mesa/drivers/allegro/amesa.c
src/mesa/drivers/dri/fb/fb_dri.c
src/mesa/drivers/dri/ffb/ffb_xmesa.c
src/mesa/drivers/dri/gamma/gamma_xmesa.c
src/mesa/drivers/dri/i810/i810screen.c
src/mesa/drivers/dri/i915/intel_screen.c
src/mesa/drivers/dri/i915tex/intel_screen.c
src/mesa/drivers/dri/i965/intel_screen.c
src/mesa/drivers/dri/mach64/mach64_screen.c
src/mesa/drivers/dri/mga/mga_xmesa.c
src/mesa/drivers/dri/nouveau/nouveau_screen.c
src/mesa/drivers/dri/r128/r128_screen.c
src/mesa/drivers/dri/radeon/radeon_screen.c
src/mesa/drivers/dri/s3v/s3v_xmesa.c
src/mesa/drivers/dri/savage/savage_xmesa.c
src/mesa/drivers/dri/sis/sis_screen.c
src/mesa/drivers/dri/tdfx/tdfx_screen.c
src/mesa/drivers/dri/trident/trident_context.c
src/mesa/drivers/dri/unichrome/via_screen.c
src/mesa/drivers/glide/fxapi.c
src/mesa/drivers/osmesa/osmesa.c
src/mesa/drivers/svga/svgamesa.c
src/mesa/drivers/x11/xm_api.c
src/mesa/main/context.c
src/mesa/main/fbobject.c
src/mesa/main/framebuffer.c
src/mesa/main/framebuffer.h
src/mesa/main/rbadaptors.c
src/mesa/main/renderbuffer.c
src/mesa/main/renderbuffer.h