From 4e6db51230d78354e2a86a23943c590f72d43c5e Mon Sep 17 00:00:00 2001 From: Georg Lehmann Date: Fri, 21 Jan 2022 15:40:06 +0100 Subject: [PATCH] [d3d9] Fix float emulation detection. ffs --- src/d3d9/d3d9_options.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/d3d9/d3d9_options.cpp b/src/d3d9/d3d9_options.cpp index a04100ad..37085b0a 100644 --- a/src/d3d9/d3d9_options.cpp +++ b/src/d3d9/d3d9_options.cpp @@ -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);