[d3d9] Use customVendorId to determine the options vendorId

This commit is contained in:
WinterSnowfall 2024-05-22 00:49:56 +03:00 committed by Philip Rebohle
parent 58d8ea2d31
commit 07d007c642
1 changed files with 2 additions and 2 deletions

View File

@ -37,8 +37,8 @@ namespace dxvk {
this->customDeviceId = parsePciId(config.getOption<std::string>("d3d9.customDeviceId"));
this->customDeviceDesc = config.getOption<std::string>("d3d9.customDeviceDesc");
const int32_t vendorId = this->customDeviceId != -1
? this->customDeviceId
const int32_t vendorId = this->customVendorId != -1
? this->customVendorId
: (adapter != nullptr ? adapter->deviceProperties().vendorID : 0);
this->maxFrameLatency = config.getOption<int32_t> ("d3d9.maxFrameLatency", 0);