using opengl 2.1 to draw texture