mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-05-04 16:50:37 +00:00
Fix overlay visual glitching
This commit is contained in:
@@ -430,11 +430,14 @@ static void RenderImGui_DX12(IDXGISwapChain* pSwapChainPlain)
|
||||
return;
|
||||
}
|
||||
|
||||
DXGI_SWAP_CHAIN_DESC scDesc;
|
||||
pSwapChain->GetDesc(&scDesc);
|
||||
|
||||
ImGui_ImplDX12_InitInfo initInfo {};
|
||||
initInfo.Device = device;
|
||||
initInfo.CommandQueue = (ID3D12CommandQueue*) currentSCCommandQueue;
|
||||
initInfo.NumFramesInFlight = NUM_BACK_BUFFERS;
|
||||
initInfo.RTVFormat = DXGI_FORMAT_R8G8B8A8_UNORM;
|
||||
initInfo.RTVFormat = scDesc.BufferDesc.Format;
|
||||
initInfo.DSVFormat = DXGI_FORMAT_UNKNOWN;
|
||||
initInfo.SrvDescriptorHeap = g_pd3dSrvDescHeap;
|
||||
initInfo.SrvDescriptorAllocFn = [](ImGui_ImplDX12_InitInfo*, D3D12_CPU_DESCRIPTOR_HANDLE* out_cpu_handle,
|
||||
|
||||
Reference in New Issue
Block a user