From 07d007c6420e0994a4c96c5aaef6b5062fa56f19 Mon Sep 17 00:00:00 2001 From: WinterSnowfall Date: Wed, 22 May 2024 00:49:56 +0300 Subject: [PATCH] [d3d9] Use customVendorId to determine the options vendorId --- src/d3d9/d3d9_options.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);