mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-24 22:55:41 +00:00
Make sure we don't get wrapped DXGI objects created with NULL inner ptrs
This commit is contained in:
@@ -473,6 +473,12 @@ HRESULT WrappedIDXGISwapChain2::Present1(UINT SyncInterval, UINT Flags, const DX
|
||||
|
||||
bool RefCountDXGIObject::HandleWrap(REFIID riid, void **ppvObject)
|
||||
{
|
||||
if(ppvObject == NULL || *ppvObject == NULL)
|
||||
{
|
||||
RDCWARN("HandleWrap called with NULL ppvObject");
|
||||
return false;
|
||||
}
|
||||
|
||||
if(riid == __uuidof(IDXGIDevice))
|
||||
{
|
||||
// should have been handled elsewhere, so we can properly create this device
|
||||
|
||||
Reference in New Issue
Block a user