diff options
author | Michal Krol <[email protected]> | 2010-03-12 14:37:36 +0100 |
---|---|---|
committer | Michal Krol <[email protected]> | 2010-03-12 14:38:23 +0100 |
commit | b8030c6561e019e079b5be2fe64ec804df4bfa03 (patch) | |
tree | e3bfe141407636ac9942fc3b890dc03ae5ef0ae4 /src/mesa/state_tracker/st_context.c | |
parent | 08f89988c8738029c60e89c61c9da0522bd53087 (diff) |
st/mesa: Associate a sampler view with an st texture object.
Lazily create a sampler view when the texture is being bound
for the first time.
Diffstat (limited to 'src/mesa/state_tracker/st_context.c')
-rw-r--r-- | src/mesa/state_tracker/st_context.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c index 09f891d691a..e978415c200 100644 --- a/src/mesa/state_tracker/st_context.c +++ b/src/mesa/state_tracker/st_context.c @@ -215,8 +215,8 @@ static void st_destroy_context_priv( struct st_context *st ) st_destroy_drawtex(st); #endif - for (i = 0; i < Elements(st->state.sampler_texture); i++) { - pipe_texture_reference(&st->state.sampler_texture[i], NULL); + for (i = 0; i < Elements(st->state.sampler_views); i++) { + pipe_sampler_view_reference(&st->state.sampler_views[i], NULL); } for (i = 0; i < Elements(st->state.constants); i++) { |