mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-13 05:20:45 +00:00
Fix DXGI hooking for D3D11
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
ID3DDevice *GetD3D11DeviceIfAlloc(IUnknown *dev)
|
||||
{
|
||||
if(WrappedID3D11Device::IsAlloc(dev))
|
||||
return (ID3DDevice *)dev;
|
||||
return (WrappedID3D11Device *)dev;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -1916,10 +1916,14 @@ void D3D11Replay::SetProxyBufferData(ResourceId bufid, byte *data, size_t dataSi
|
||||
}
|
||||
}
|
||||
|
||||
ID3DDevice *GetD3D11DeviceIfAlloc(IUnknown *dev);
|
||||
|
||||
ReplayCreateStatus D3D11_CreateReplayDevice(const char *logfile, IReplayDriver **driver)
|
||||
{
|
||||
RDCDEBUG("Creating a D3D11 replay device");
|
||||
|
||||
WrappedIDXGISwapChain3::RegisterD3DDeviceCallback(GetD3D11DeviceIfAlloc);
|
||||
|
||||
HMODULE lib = NULL;
|
||||
lib = LoadLibraryA("d3d11.dll");
|
||||
if(lib == NULL)
|
||||
|
||||
Reference in New Issue
Block a user