Final changes to make the example fully OpenGL-3.0-compliant: