Initialise debug manager on frame capture if it's not ready. Refs #880

* If no swapchains have been created the debug manager won't be ready,
  so we need to ensure it's initialised here so we can use it during
  initial state preparation.
This commit is contained in:
baldurk
2018-02-24 14:04:04 +00:00
parent 24fa60aa14
commit 6d076aaf69
+2
View File
@@ -2711,6 +2711,8 @@ void WrappedID3D11Device::StartFrameCapture(void *dev, void *wnd)
SCOPED_LOCK(m_D3DLock);
LazyInit();
RenderDoc::Inst().SetCurrentDriver(RDC_D3D11);
m_State = WRITING_CAPFRAME;