mesa: Unbind GL_TEXTURE_BUFFER on DeleteBuffers.
Fixes oglconform's tbo/basic.buffer.delete test. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
bbb67c3efc
commit
45c21f852e
|
@ -848,6 +848,10 @@ _mesa_DeleteBuffersARB(GLsizei n, const GLuint *ids)
|
|||
_mesa_BindBufferARB( GL_PIXEL_UNPACK_BUFFER_EXT, 0 );
|
||||
}
|
||||
|
||||
if (ctx->Texture.BufferObject == bufObj) {
|
||||
_mesa_BindBufferARB( GL_TEXTURE_BUFFER, 0 );
|
||||
}
|
||||
|
||||
/* The ID is immediately freed for re-use */
|
||||
_mesa_HashRemove(ctx->Shared->BufferObjects, ids[i]);
|
||||
/* Make sure we do not run into the classic ABA problem on bind.
|
||||
|
|
Loading…
Reference in New Issue