mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 02:20:11 +01:00
gallium/cso: check for set_vertex_sampler_views != NULL before calling it
Not all drivers implement this method. Fixes regression reported by Chris Rankin and bug 28889.
This commit is contained in:
parent
53d3f0c788
commit
e845765f0f
1 changed files with 2 additions and 1 deletions
|
|
@ -290,7 +290,8 @@ void cso_release_all( struct cso_context *ctx )
|
|||
ctx->pipe->bind_vs_state( ctx->pipe, NULL );
|
||||
ctx->pipe->bind_vertex_elements_state( ctx->pipe, NULL );
|
||||
ctx->pipe->set_fragment_sampler_views(ctx->pipe, 0, NULL);
|
||||
ctx->pipe->set_vertex_sampler_views(ctx->pipe, 0, NULL);
|
||||
if (ctx->pipe->set_vertex_sampler_views)
|
||||
ctx->pipe->set_vertex_sampler_views(ctx->pipe, 0, NULL);
|
||||
}
|
||||
|
||||
for (i = 0; i < PIPE_MAX_SAMPLERS; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue