[d3d9] Fix float emulation detection.

ffs
This commit is contained in:
Georg Lehmann 2022-01-21 15:40:06 +01:00 committed by Robin Kertels
parent 14df2f7251
commit 4e6db51230
1 changed files with 2 additions and 1 deletions

View File

@ -89,7 +89,8 @@ namespace dxvk {
} else if (floatEmulation == "true") {
d3d9FloatEmulation = D3D9FloatEmulation::Enabled;
} else {
bool hasMulz = adapter->matchesDriver(DxvkGpuVendor::Amd,
bool hasMulz = adapter != nullptr
&& adapter->matchesDriver(DxvkGpuVendor::Amd,
VK_DRIVER_ID_MESA_RADV,
VK_MAKE_VERSION(21, 99, 99),
0);