Tweaking sample; now working with OpenGL 2.1