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:
baldurk
2015-12-08 21:39:44 +01:00
parent d07e860030
commit 8cd9a4d22d
-2
View File
@@ -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);