fixed a bug pertaining to texture binding
tweaking demo 6