Changed material texture binding to make it simpler with modern opengl