|
|
|
@ -92,7 +92,8 @@ void DX11_Hook::prepareForOverlay(IDXGISwapChain* pSwapChain)
|
|
|
|
|
initialized = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ImGui_ImplDX11_NewFrame();
|
|
|
|
|
if (ImGui_ImplDX11_NewFrame())
|
|
|
|
|
{
|
|
|
|
|
Windows_Hook::Inst()->prepareForOverlay(desc.OutputWindow);
|
|
|
|
|
|
|
|
|
|
ImGui::NewFrame();
|
|
|
|
@ -104,6 +105,7 @@ void DX11_Hook::prepareForOverlay(IDXGISwapChain* pSwapChain)
|
|
|
|
|
pContext->OMSetRenderTargets(1, &mainRenderTargetView, NULL);
|
|
|
|
|
ImGui_ImplDX11_RenderDrawData(ImGui::GetDrawData());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
HRESULT STDMETHODCALLTYPE DX11_Hook::MyPresent(IDXGISwapChain *_this, UINT SyncInterval, UINT Flags)
|
|
|
|
|
{
|
|
|
|
|