Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Windows. Fix a crash when we resize to zero and then to non-zero (#883)
Fixes JetBrains/compose-multiplatform#4425 It is a regression after #858 The crash was because `d3dDevice->swapChain->GetBuffer` didn't return the buffer to draw on if we reused the buffer from the previous frame (we didn't change `surface` in case of zero size). I am not completely sure why, but I exhausted my the investigation limit and this fix is needed by other reasons (we need to wait for vsync). ## Testing An additional check in the existed test (fails before the fix)
- Loading branch information