Created attachment 134788 [details] [review]
Patch to add OpenGL 4.6 as a known version
src/xdemos/glinfo_common.h contains a list of known OpenGL versions, this patch add OpenGL 4.6
Good catch, thanks! This allows glxinfo and wglinfo to show 4.6 info :)
I went ahead and create a commit for you, and pushed it:
Author: Dario Ostuni <firstname.lastname@example.org>
Date: Wed Oct 11 14:12:58 2017 +0100
Add OpenGL 4.6 as a known version
Reviewed-by: Eric Engestrom <email@example.com>
Next time you have a patch, it would be easier if you sent it to the mailing list instead.
Everything you need to know is explained on our website:
(In reply to Eric Engestrom from comment #1)
> Good catch, thanks! This allows glxinfo and wglinfo to show 4.6 info :)
It should work even without the patch. When requesting GL 4.5 (or 3.1 even) the driver is allowed to create a 4.6 context since it's compatible with the requested version.
Regardless, it's a good idea to be explicit imho.
@Eric Engestrom thanks! And also thanks for pointing me to that page in the website.
@Emil Velikov with the NVIDIA proprietary driver glxinfo was showing OpenGL version 4.5, even if the driver supports 4.6
(In reply to Dario Ostuni from comment #3)
> @Emil Velikov with the NVIDIA proprietary driver glxinfo was showing OpenGL
> version 4.5, even if the driver supports 4.6
That is probably because OpenGL 4.6 is still only a provisional specification (due to no conformance program yet). Once the conformance program is in place and 4.6 support moves out of beta, I bet it would just work.