diff options
author | Chia-I Wu <[email protected]> | 2010-10-31 01:13:27 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-10-31 01:18:59 +0800 |
commit | cfc81d93f7b07a89437cbbce173fc468070e06da (patch) | |
tree | 24a737ac02984cd3ef2c2a1acf560adbb052b524 /src/mesa | |
parent | 9c2b4814d0b7dc67777099ea249c09bcf9ee46eb (diff) |
st/mesa: Unreference the sampler view in st_bind_surface.
Without this, update_textures may not pick up the new pipe_resource.
It is actually update_textures that should check
stObj->sampler_view->texture != stObj->pt, but let's follow st_TexImage
and others for now.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/state_tracker/st_cb_eglimage.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_eglimage.c b/src/mesa/state_tracker/st_cb_eglimage.c index 298f8a5b12b..b39a624a612 100644 --- a/src/mesa/state_tracker/st_cb_eglimage.c +++ b/src/mesa/state_tracker/st_cb_eglimage.c @@ -129,6 +129,7 @@ st_bind_surface(struct gl_context *ctx, GLenum target, /* FIXME create a non-default sampler view from the pipe_surface? */ pipe_resource_reference(&stObj->pt, ps->texture); + pipe_sampler_view_reference(&stObj->sampler_view, NULL); pipe_resource_reference(&stImage->pt, stObj->pt); stObj->width0 = ps->width; |