update OpenGL drawing functions