Fix loads of subsequent D3D12On7 captures

This commit is contained in:
baldurk
2019-08-27 18:51:55 +01:00
parent c579c6f264
commit f53f52b172
+3 -1
View File
@@ -3587,7 +3587,9 @@ ReplayStatus D3D12_CreateReplayDevice(RDCFile *rdc, IReplayDriver **driver)
WrappedIDXGISwapChain4::RegisterD3DDeviceCallback(GetD3D12DeviceIfAlloc);
bool d3d12on7 = false;
// this needs to be static, because we don't unload d3d12.dll so the plain LoadLibraryA will
// succeed on subsequent capture loads.
static bool d3d12on7 = false;
HMODULE lib = NULL;
lib = LoadLibraryA("d3d12.dll");