Removed unnecessary (commented) buffer unbind.
Removed unnecessary debugging check