dri/nouveau: Cleanup more references to old FBOs and VBOs.

This commit is contained in:
Francisco Jerez 2010-09-17 16:35:49 +02:00
parent 13c246bcea
commit 22c83ac47a
2 changed files with 4 additions and 4 deletions

View File

@ -262,7 +262,10 @@ update_framebuffer(__DRIcontext *dri_ctx, __DRIdrawable *draw,
nouveau_update_renderbuffers(dri_ctx, draw);
_mesa_resize_framebuffer(ctx, fb, draw->w, draw->h);
/* Clean up references to the old framebuffer objects. */
context_dirty(ctx, FRAMEBUFFER);
context_bctx(ctx, FRAMEBUFFER);
FIRE_RING(context_chan(ctx));
}
GLboolean
@ -283,10 +286,6 @@ nouveau_context_make_current(__DRIcontext *dri_ctx, __DRIdrawable *dri_draw,
update_framebuffer(dri_ctx, dri_read,
&dri_ctx->dri2.read_stamp);
/* Clean up references to the old framebuffer objects. */
context_bctx(ctx, FRAMEBUFFER);
FIRE_RING(context_chan(ctx));
/* Pass it down to mesa. */
_mesa_make_current(ctx, dri_draw->driverPrivate,
dri_read->driverPrivate);

View File

@ -143,6 +143,7 @@ vbo_deinit_arrays(GLcontext *ctx, const struct _mesa_index_buffer *ib,
}
render->attr_count = 0;
context_bctx(ctx, VERTEX);
}
/* Make some rendering decisions from the GL context. */