r300: Increase reference count of texture objects referenced by current state.
authorMichel Dänzer <daenzer@vmware.com>
Thu, 30 Apr 2009 11:21:08 +0000 (13:21 +0200)
committerMichel Dänzer <daenzer@vmware.com>
Thu, 30 Apr 2009 11:21:08 +0000 (13:21 +0200)
commitc28707b50701b1cf8727be29d61e2d939c6ee58f
tree97266614c6e162f4730427c2e4e33f547fcd9def
parentba27fe3710af4933a16278a3e97162bef1737b56
r300: Increase reference count of texture objects referenced by current state.

Fixes a use-after-free reported in
http://bugs.freedesktop.org/show_bug.cgi?id=20539, so this possibly fixes that
bug. It has been confirmed to fix
http://bugs.freedesktop.org/show_bug.cgi?id=17895 .
src/mesa/drivers/dri/r300/r300_context.h
src/mesa/drivers/dri/r300/r300_state.c
src/mesa/drivers/dri/r300/r300_texmem.c
src/mesa/drivers/dri/r300/r300_texstate.c