mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 21:50:11 +01:00
cso: don't cycle through PIPE_MAX_SHADER_SAMPLER_VIEWS on context destroy
There's no point, we know the highest non-null one. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
This commit is contained in:
parent
89ae5def8c
commit
b923f21eaa
1 changed files with 3 additions and 1 deletions
|
|
@ -407,8 +407,10 @@ void cso_destroy_context( struct cso_context *ctx )
|
|||
ctx->pipe->set_stream_output_targets(ctx->pipe, 0, NULL, NULL);
|
||||
}
|
||||
|
||||
for (i = 0; i < PIPE_MAX_SHADER_SAMPLER_VIEWS; i++) {
|
||||
for (i = 0; i < ctx->nr_fragment_views; i++) {
|
||||
pipe_sampler_view_reference(&ctx->fragment_views[i], NULL);
|
||||
}
|
||||
for (i = 0; i < ctx->nr_fragment_views_saved; i++) {
|
||||
pipe_sampler_view_reference(&ctx->fragment_views_saved[i], NULL);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue