mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-28 09:26:52 +00:00
Fix loads of subsequent D3D12On7 captures
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user