There are reports on crashes in QRhiD3D11::endFrame() due to nullptr access to swapChain (IDXGISwapChain). It's still not clear under what conditions this might happen, but we can make a speculative fix (as a last chance) by simply adding a check that the swapChain is not null. Instead of crashing in such cases, we will warn now and return QRhi::FrameOpError, similar to the case when IDXGISwapChain::Present() failed. Task-number: QTBUG-109708 Pick-to: 6.5 Change-Id: I2b0430347a229a618176a38ce3dc9c6e5a33a60c Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io> (cherry picked from commit 2581bed66be114ae106696a0321f99fba1c4d6f9) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
…
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%