st/mesa: Finalize texture on render-to-texture.
authorMichel Dänzer <michel.daenzer@amd.com>
Thu, 22 Sep 2011 15:01:18 +0000 (17:01 +0200)
committerMichel Dänzer <michel@daenzer.net>
Thu, 22 Sep 2011 15:01:18 +0000 (17:01 +0200)
commitde414f491526610bb260c73805c81ba413388e20
treef7a19c78dfcc3b094550fd1d3f2ba2781c626734
parent4beb8f9e9d0d45d64a9d60ef48ede95b4723c9a5
st/mesa: Finalize texture on render-to-texture.

This makes sure that stObj->pt exists and is up to date.

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=39193 and piglit
fbo-incomplete-texture-03.

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
NOTE: This is a candidate for the 7.11 branch.
src/mesa/state_tracker/st_cb_fbo.c