const void *key, void *data,
void *user)
{
- struct pipe_context *pipe = (struct pipe_context*)user;
+ struct pipe_sampler_view *sv = (struct pipe_sampler_view*)data;
assert(map);
assert(key);
assert(data);
assert(user);
- pipe->sampler_view_destroy(pipe, data);
+ pipe_sampler_view_reference(&sv, NULL);
}
bool vl_compositor_init(struct vl_compositor *compositor, struct pipe_context *pipe)
c->pipe->draw_arrays(c->pipe, PIPE_PRIM_TRIANGLES, i * 6, 6);
if (delete_view) {
- c->pipe->sampler_view_destroy(c->pipe, surface_view);
+ pipe_sampler_view_reference(&surface_view, NULL);
}
}
}
pipe_resource_reference(&r->vs_const_buf, NULL);
for (i = 0; i < 3; ++i) {
- r->pipe->sampler_view_destroy(r->pipe, r->sampler_views.all[i]);
+ pipe_sampler_view_reference(&r->sampler_views.all[i], NULL);
r->pipe->delete_vertex_elements_state(r->pipe, r->vertex_elems_state.all[i]);
pipe_resource_reference(&r->vertex_bufs.all[i].buffer, NULL);
pipe_resource_reference(&r->textures.all[i], NULL);
const void *key, void *data,
void *user)
{
- struct pipe_context *pipe = (struct pipe_context*)user;
+ struct pipe_sampler_view *sv = (struct pipe_sampler_view*)data;
assert(map);
assert(key);
assert(data);
assert(user);
- pipe->sampler_view_destroy(pipe, data);
+ pipe_sampler_view_reference(&sv, NULL);
}
bool