fix vulkan driver version for intel and nvidia

This commit is contained in:
13xforever 2018-08-30 01:52:54 +05:00 committed by Roberto Anić Banić
parent 0ed01739c1
commit 4839792879

View File

@ -333,7 +333,7 @@ namespace CompatBot.Utils.ResultFormatters
else
{
var major = (ver >> 22) & 0x3ff;
var minor = (ver >> 14) & 0xf;
var minor = (ver >> 14) & 0xff;
var patch = ver & 0x3fff;
if (major == 0 && gpuInfo.Contains("Intel", StringComparison.InvariantCultureIgnoreCase))
return $"{minor}.{patch}";