mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
mesa: Flag _NEW_BUFFERS when unbinding an attachment on glDeleteTextures.
The _ColorDrawBuffers[] wouldn't get updated despite us having updated
what it depends on (Attachments[]->Renderbuffer). Other callers of
_mesa_remove_attachment are already flagging _NEW_BUFFERS for other
reasons. The specific bug report that led to this fix (and
the fbo-finish-deleted testcase) was fixed by
23b6f9606d, though.
Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
a5a36d9b15
commit
001e071443
1 changed files with 2 additions and 0 deletions
|
|
@ -879,6 +879,8 @@ unbind_texobj_from_fbo(struct gl_context *ctx,
|
|||
for (j = 0; j < BUFFER_COUNT; j++) {
|
||||
if (fb->Attachment[j].Type == GL_TEXTURE &&
|
||||
fb->Attachment[j].Texture == texObj) {
|
||||
/* Vertices are already flushed by _mesa_DeleteTextures */
|
||||
ctx->NewState |= _NEW_BUFFERS;
|
||||
_mesa_remove_attachment(ctx, fb->Attachment + j);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue