Don't allow registered x86 layer to hide a non-registered x64 layer

This commit is contained in:
baldurk
2018-08-01 18:38:28 +01:00
parent 59529d4f42
commit 955f41a074
+7 -4
View File
@@ -282,15 +282,18 @@ bool VulkanReplay::CheckVulkanLayer(VulkanLayerFlags &flags, std::vector<std::st
{
key = GetImplicitLayersKey(false, true);
// if we're on 64-bit, the layer isn't registered unless both keys are registered.
thisRegistered = false;
if(key)
{
thisRegistered = ProcessImplicitLayersKey(key, wow6432Path, &otherJSONs, false);
// if we're on 64-bit, the layer isn't registered unless both keys are registered.
thisRegistered &= ProcessImplicitLayersKey(key, wow6432Path, &otherJSONs, false);
RegCloseKey(key);
}
else
{
flags = VulkanLayerFlags::NeedElevation | VulkanLayerFlags::RegisterAll;
return true;
}
}
#endif