mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 06:50:10 +01:00
dri/nouveau: Avoid recursion in nouveau_bo_context_reset().
This commit is contained in:
parent
f2098e0fef
commit
dbe1eae785
1 changed files with 5 additions and 5 deletions
|
|
@ -126,13 +126,13 @@ void
|
|||
nouveau_bo_context_reset(struct nouveau_bo_context *bctx)
|
||||
{
|
||||
struct nouveau_bo_state *s = &to_nouveau_context(bctx->ctx)->bo;
|
||||
int i;
|
||||
int i, n = bctx->count;
|
||||
|
||||
for (i = 0; i < bctx->count; i++)
|
||||
nouveau_bo_ref(NULL, &bctx->marker[i].bo);
|
||||
|
||||
s->count -= bctx->count;
|
||||
s->count -= n;
|
||||
bctx->count = 0;
|
||||
|
||||
for (i = 0; i < n; i++)
|
||||
nouveau_bo_ref(NULL, &bctx->marker[i].bo);
|
||||
}
|
||||
|
||||
GLboolean
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue