mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-21 05:05:44 +00:00
Fix crash when structured exporting on D3D
This commit is contained in:
@@ -99,7 +99,8 @@ D3D11ShaderCache::D3D11ShaderCache(WrappedID3D11Device *wrapper)
|
||||
// if we're being self-captured, the 'real' device will respond to renderdoc's UUID. Enable debug
|
||||
// shaders
|
||||
IUnknown *dummy = NULL;
|
||||
wrapper->GetReal()->QueryInterface(IRenderDoc_uuid, (void **)&dummy);
|
||||
if(wrapper->GetReal())
|
||||
wrapper->GetReal()->QueryInterface(IRenderDoc_uuid, (void **)&dummy);
|
||||
|
||||
if(dummy)
|
||||
{
|
||||
|
||||
@@ -307,7 +307,8 @@ D3D12ShaderCache::D3D12ShaderCache(WrappedID3D12Device *device)
|
||||
// if we're being self-captured, the 'real' device will respond to renderdoc's UUID. Enable debug
|
||||
// shaders
|
||||
IUnknown *dummy = NULL;
|
||||
device->GetReal()->QueryInterface(IRenderDoc_uuid, (void **)&dummy);
|
||||
if(device->GetReal())
|
||||
device->GetReal()->QueryInterface(IRenderDoc_uuid, (void **)&dummy);
|
||||
|
||||
if(dummy)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user