st/wgl: Ignore ulVersion in DrvValidateVersion.
We never used ulVersion for proper version checks. Most 3rd party drivers use version 1, but recently NVIDIA OpenGL driver started using a different version number, so the handy trick of renaming Mesa's ICDs as nvoglv32.dll on Windows machines with NVIDIA hardware for quick testing of Mesa software renderers stopped working. Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
@@ -213,6 +213,14 @@ BOOL APIENTRY
|
||||
DrvValidateVersion(
|
||||
ULONG ulVersion )
|
||||
{
|
||||
/* TODO: get the expected version from the winsys */
|
||||
return ulVersion == 1;
|
||||
/* ulVersion is the version reported by the KMD:
|
||||
* - via D3DKMTQueryAdapterInfo(KMTQAITYPE_UMOPENGLINFO) on WDDM,
|
||||
* - or ExtEscape on XPDM and can be used to ensure the KMD and OpenGL ICD
|
||||
* versions match.
|
||||
*
|
||||
* We should get the expected version number from the winsys, but for now
|
||||
* ignore it.
|
||||
*/
|
||||
(void)ulVersion;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user