st/mesa: fix a regression from cae2bb76
authorFredrik Höglund <fredrik@kde.org>
Thu, 6 Jan 2011 22:12:08 +0000 (23:12 +0100)
committerAlex Deucher <alexdeucher@gmail.com>
Thu, 13 Jan 2011 06:22:20 +0000 (01:22 -0500)
commit71b889f904fcba4fbc5aafff4cb62a7201f38075
tree0437212a7e39da3a7c299519128fc12459ca2449
parentbd2b72359ed504434692d7464602c780a322c61e
st/mesa: fix a regression from cae2bb76

stObj->pt is null when a TFP texture is passed to st_finalize_texture,
and with the changes introduced in the above commit this resulted in a
new texture being created and the existing image being copied into it.

NOTE: This is a candidate for the 7.10 branch.

Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
src/mesa/state_tracker/st_cb_texture.c