Method GLProfile.getDefault() returns GL2 when GL4 is available. Why? I use Ubuntu 17.04, proccessor is Intel Core i5-7500 (Video Adapter is Intel HD Graphics 630, and it supports GL4 (as described in specification for this Graphics Card).
Output of glxinfo | grep -i opengl
:
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Kabylake GT2
OpenGL core profile version string: 4.5 (Core Profile) Mesa 17.0.7
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 17.0.7
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 17.0.7
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:
So, perhaps, my videocard drivers under linux does not support GL4. (But my videocard supports it)