提交 74a5bdf9 编写于 作者: J jp9000

win-capture: If backbuffer count is 1, disable dxgi 1.4 use

Executing the dxgi 1.4 code causes it to cycle through backbuffers,
backbuffers which may not exist if in discard mode.
上级 414ff5ba
...@@ -248,6 +248,9 @@ static inline bool d3d12_init_format(IDXGISwapChain *swap, HWND &window, ...@@ -248,6 +248,9 @@ static inline bool d3d12_init_format(IDXGISwapChain *swap, HWND &window,
bb.count = desc.SwapEffect == DXGI_SWAP_EFFECT_DISCARD bb.count = desc.SwapEffect == DXGI_SWAP_EFFECT_DISCARD
? 1 : desc.BufferCount; ? 1 : desc.BufferCount;
if (bb.count == 1)
data.dxgi_1_4 = false;
if (bb.count > MAX_BACKBUFFERS) { if (bb.count > MAX_BACKBUFFERS) {
hlog("Somehow it's using more than the max backbuffers. " hlog("Somehow it's using more than the max backbuffers. "
"Not sure why anyone would do that."); "Not sure why anyone would do that.");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册