dri/nouveau: Cleanup more references to old FBOs and VBOs.
This commit is contained in:
parent
13c246bcea
commit
22c83ac47a
|
@ -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);
|
||||
|
|
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue