On Thu Aug 10 13:41:11 2023 +0000, Stefan Dösinger wrote:
I get a similar-looking (but different, High DPI related) failure on Windows so I mentally blocked this. But oof. The issue here is that fullscreen swapchains take the current mode size whereas windowed swapchains the current window size. So far so good. But dxgi creates FS swapchains as windowed and then switches them to fullscreen. But by the time we switch to FS the swapchain's desc now has a non-zero size
Actually, it is the other way around. The selected mode depends on the window size and currently dxgi depends on us feeding the window size back into the input description, which is not const. With my patch the input is unmodified, so we end up choosing the current desktop mode.