On Tue, Apr 26, 2016 at 4:21 AM, Ken Thomases <ken(a)codeweavers.com> wrote:
On Apr 26, 2016, at 4:41 AM, Henri Verbeet <hverbeet(a)gmail.com> wrote:
On 26 April 2016 at 10:29, Ken Thomases <ken(a)codeweavers.com> wrote:
+ case WGL_RENDERER_VERSION_WINE: + /* FIXME: anything better we can return? */ If the driver doesn't have its own version number, the next best thing is probably the OS version number. This typically matches the final part of the GL_VERSION string.
OK, I can try to extract it from that string. I gather that nothing past
major.minor is standardized in that string, in general, but it may be more predictable on OS X. With N vidia GPUs, at least, there's something resembling an NV driver version at the very end of the GL_VERSION string. For example, on my system I get: 3.3 NVIDIA-10.0.47 310.90.10.05b12 As far as I know, this only works on Nvidia's stuff, thoug h. I once had an ATI card; I forget what the version string looked like there. More generally, OS X version strings tend to be somewhat predictable. Following the OpenGL version, you have a vendor name, followed by a dash, followed by some sort of driver version (with the Nvidia version immediately following for NV cards). Chip