moved binding of texture to switch instead of draw