diff --git a/src/d3d9/d3d9_options.cpp b/src/d3d9/d3d9_options.cpp index 0884819f..19300b1d 100644 --- a/src/d3d9/d3d9_options.cpp +++ b/src/d3d9/d3d9_options.cpp @@ -37,8 +37,8 @@ namespace dxvk { this->customDeviceId = parsePciId(config.getOption("d3d9.customDeviceId")); this->customDeviceDesc = config.getOption("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 ("d3d9.maxFrameLatency", 0);