Make the example fully OpenGL-3.1-compliant.