From 89e5b1e62bf1e447e71d9d33d20aa01590e2f953 Mon Sep 17 00:00:00 2001 From: baldurk Date: Sun, 23 Aug 2015 11:43:02 +0200 Subject: [PATCH] Workaround nvidia crash seen in the wild, with jump into unloaded dll --- renderdoc/driver/d3d11/d3d11_device.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/renderdoc/driver/d3d11/d3d11_device.cpp b/renderdoc/driver/d3d11/d3d11_device.cpp index be4f3a390..1f6a40c38 100644 --- a/renderdoc/driver/d3d11/d3d11_device.cpp +++ b/renderdoc/driver/d3d11/d3d11_device.cpp @@ -406,6 +406,11 @@ WrappedID3D11Device::WrappedID3D11Device(ID3D11Device* realDevice, D3D11InitPara if(GetModuleHandleA("atidxx64.dll")) LoadLibraryA("atidxx64.dll"); + // NVIDIA workaround - same as above! + + if(GetModuleHandleA("nvwgf2umx.dll")) + LoadLibraryA("nvwgf2umx.dll"); + ////////////////////////////////////////////////////////////////////////// // Compile time asserts