mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
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.
(cherry picked from commit cfc81d93f7)
This commit is contained in:
parent
feacfc4a93
commit
5105e3d415
1 changed files with 1 additions and 0 deletions
|
|
@ -129,6 +129,7 @@ st_bind_surface(GLcontext *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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue