llvmpipe: fix texture reference counting bug
authorBrian Paul <brianp@vmware.com>
Wed, 24 Mar 2010 22:27:31 +0000 (16:27 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 24 Mar 2010 22:29:17 +0000 (16:29 -0600)
commit2ad8692aad0f4ad49643d5f697a036afccdeb9f0
treea3f34c4390cb0022e343128ac199db5dcfc14b10
parentf0e04b094412d358e913d3d1107d7260047f6fb2
llvmpipe: fix texture reference counting bug

We weren't saving the per-scene texture references at the right point.

Fixes piglit cubemap segfault.  The segfault resulted from referencing
texture memory which was prematurely freed because of a missed reference
count.

Fixes fd.o bug 27276.
src/gallium/drivers/llvmpipe/lp_setup.c
src/gallium/drivers/llvmpipe/lp_setup_context.h