summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker/st_gen_mipmap.c
diff options
context:
space:
mode:
authorMichal Krol <michal@vmware.com>2010-03-16 19:39:09 +0100
committerMichal Krol <michal@vmware.com>2010-03-16 19:40:15 +0100
commit40c3861e1e98116c573027b054a6a05208c53b6a (patch)
tree1f529a56d664a7489ad0993f6073e7082cddd136 /src/mesa/state_tracker/st_gen_mipmap.c
parentac8662c29dbf96b456d23308c1bc459eea63e36c (diff)
st/mesa: Invalidate sampler view when texture object changes.
Diffstat (limited to 'src/mesa/state_tracker/st_gen_mipmap.c')
-rw-r--r--src/mesa/state_tracker/st_gen_mipmap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_gen_mipmap.c b/src/mesa/state_tracker/st_gen_mipmap.c
index 97f6903f9e..030b0a0f06 100644
--- a/src/mesa/state_tracker/st_gen_mipmap.c
+++ b/src/mesa/state_tracker/st_gen_mipmap.c
@@ -256,6 +256,7 @@ st_generate_mipmap(GLcontext *ctx, GLenum target,
/* release the old tex (will likely be freed too) */
pipe_texture_reference(&oldTex, NULL);
+ pipe_sampler_view_reference(&stObj->sampler_view, NULL);
pt = stObj->pt;
}