mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 00:38:48 +02:00
cso: unbind vertex buffers when unbinding context
cc: mesa-stable
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37276>
(cherry picked from commit 9f764486cb)
This commit is contained in:
parent
50394e4f7a
commit
8ec6872fe3
2 changed files with 2 additions and 1 deletions
|
|
@ -5454,7 +5454,7 @@
|
|||
"description": "cso: unbind vertex buffers when unbinding context",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -438,6 +438,7 @@ cso_unbind_context(struct cso_context *cso)
|
|||
ctx->base.pipe->bind_ms_state(ctx->base.pipe, NULL);
|
||||
}
|
||||
ctx->base.pipe->bind_vertex_elements_state(ctx->base.pipe, NULL);
|
||||
ctx->base.pipe->set_vertex_buffers(ctx->base.pipe, 0, NULL);
|
||||
|
||||
if (ctx->has_streamout)
|
||||
ctx->base.pipe->set_stream_output_targets(ctx->base.pipe, 0, NULL, NULL, 0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue