mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-24 23:46:41 +00:00
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.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user