Fix DXGI hooking for D3D11

This commit is contained in:
baldurk
2016-07-10 14:48:50 +03:00
parent 2fec42b3f2
commit 1f1467b06b
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -32,7 +32,7 @@
ID3DDevice *GetD3D11DeviceIfAlloc(IUnknown *dev)
{
if(WrappedID3D11Device::IsAlloc(dev))
return (ID3DDevice *)dev;
return (WrappedID3D11Device *)dev;
return NULL;
}
+4
View File
@@ -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)