From 8cd9a4d22d9627a0f1365c6e39c6f18b7bcd4eb3 Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 8 Dec 2015 21:39:44 +0100 Subject: [PATCH] Pass ownership of real immediate context to WrappedID3D11DeviceContext * The wrapped context releases its real context - so we need to ensure the addrefs and releases are balanced. --- renderdoc/driver/d3d11/d3d11_device.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/renderdoc/driver/d3d11/d3d11_device.cpp b/renderdoc/driver/d3d11/d3d11_device.cpp index 5a6f29765..3e73175c5 100644 --- a/renderdoc/driver/d3d11/d3d11_device.cpp +++ b/renderdoc/driver/d3d11/d3d11_device.cpp @@ -349,8 +349,6 @@ WrappedID3D11Device::WrappedID3D11Device(ID3D11Device* realDevice, D3D11InitPara m_pImmediateContext = new WrappedID3D11DeviceContext(this, context, m_pSerialiser, m_pDebugSerialiser); - SAFE_RELEASE(context); - realDevice->QueryInterface(__uuidof(ID3D11InfoQueue), (void **)&m_pInfoQueue); realDevice->QueryInterface(__uuidof(ID3D11Debug), (void **)&m_WrappedDebug.m_pDebug);