mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 17:30:20 +01:00
st/nine: Unset vtxbuf on reset
We forgot to reset vtxbuf. This fixes some crashes. Signed-off-by: Axel Davy <axel.davy@ens.fr> Reviewed-by: Patrick Rudolph <siro@das-labor.org>
This commit is contained in:
parent
b63c144d1e
commit
b6bb8d561a
1 changed files with 3 additions and 1 deletions
|
|
@ -1314,8 +1314,10 @@ nine_state_clear(struct nine_state *state, const boolean device)
|
|||
nine_bind(&state->vs, NULL);
|
||||
nine_bind(&state->ps, NULL);
|
||||
nine_bind(&state->vdecl, NULL);
|
||||
for (i = 0; i < PIPE_MAX_ATTRIBS; ++i)
|
||||
for (i = 0; i < PIPE_MAX_ATTRIBS; ++i) {
|
||||
nine_bind(&state->stream[i], NULL);
|
||||
pipe_resource_reference(&state->vtxbuf[i].buffer, NULL);
|
||||
}
|
||||
nine_bind(&state->idxbuf, NULL);
|
||||
for (i = 0; i < NINE_MAX_SAMPLERS; ++i) {
|
||||
if (device &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue