Erase the iterator after using it to determine if the buffer/texture is bound instead of before.
Erase the iterator after using it to determine if the buffer/texture is bound instead of before.

vonture/fixie,vonture/fixie