Skip to content

Version 0.7.97

Compare
Choose a tag to compare
@jb-compose-bot jb-compose-bot released this 06 Mar 19:35
c3a9008
Windows. Fix a crash when we resize to zero and then to non-zero (#883)

Fixes https://github.com/JetBrains/compose-multiplatform/issues/4425

It is a regression after https://github.com/JetBrains/skiko/pull/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)