fixed another OpenGL error when binding the texture