texturing in legacy opengl