When requesting a 3.3 context, a 3.0 context is created instead. The code was written to check for a 3.3 context, if not available, it should fallback to a 2.1 context instead. GLFW and GLEW where used for creating and managing the context. When testing for OpenGL support using GLEW, GL_VERSION_3_3 and GL_VERSION_4_0, report as true. Using the GL_VERSION_3_3 to determine whether to load GLSL 3.3 shaders or 1.2 shaders, will fail with: resources/shaders/330/quad.vert:0:1(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, and 3.00 ES Graphics Info: $ sudo lspci -v ... 00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller]) Subsystem: Lenovo Device 21e2 Flags: bus master, fast devsel, latency 0, IRQ 40 Memory at d0000000 (64-bit, non-prefetchable) [size=4M] Memory at c0000000 (64-bit, prefetchable) [size=256M] I/O ports at 5000 [size=64] Expansion ROM at <unassigned> [disabled] Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit- Capabilities: [d0] Power Management version 2 Capabilities: [a4] PCI Advanced Features Kernel driver in use: i915 Kernel modules: i915 ... $ glxinfo | grep OpenGL OpenGL vendor string: Intel Open Source Technology Center OpenGL renderer string: Mesa DRI Intel(R) Sandybridge Mobile OpenGL core profile version string: 3.1 (Core Profile) Mesa 10.2.3 OpenGL core profile shading language version string: 1.40 OpenGL core profile context flags: (none) OpenGL core profile extensions: OpenGL version string: 3.0 Mesa 10.2.3 OpenGL shading language version string: 1.30 OpenGL context flags: (none) OpenGL extensions: OpenGL ES profile version string: OpenGL ES 3.0 Mesa 10.2.3 OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.0 OpenGL ES profile extensions: The graphics chipset is an Intel HD 3000.
Correction: the 2.1 context is created, when it fails.
OpenGL 3.3 support for Sandybridge landed in mesa-10.4.0. Mesa only supports "core" profiles.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.