Render reshade over dalamud on hook mode

This commit is contained in:
Soreepeong 2024-07-25 21:39:07 +09:00
parent d8861ec7da
commit f0777106d3

View file

@ -83,12 +83,11 @@ internal unsafe partial class InterfaceManager
this.reShadeDxgiSwapChainPresentHook is not null,
"this.reShadeDxgiSwapChainPresentHook is not null");
// Call this first to draw Dalamud over ReShade.
this.reShadeDxgiSwapChainPresentHook!.Original(swapChain, flags, presentParams);
if (this.RenderDalamudCheckAndInitialize(swapChain->AsIDxgiSwapChain(), flags) is { } activeScene)
this.RenderDalamudDraw(activeScene);
this.reShadeDxgiSwapChainPresentHook!.Original(swapChain, flags, presentParams);
// Upstream call to system IDXGISwapChain::Present will be called by ReShade.
}