Added support for OpenGL 3.1
Added support for a bunch of new OpenGL extensions.
Authored by: spasi 2009-03-25
Parent: [r3189]
Child: [r3191]