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