Skip to content

Release 0.0.11

Latest

Choose a tag to compare

@Alexander-Aue-Johr Alexander-Aue-Johr released this 01 Jun 16:50
· 2 commits to main since this release

Fix loading screen crash caused by clearing with a null depth-stencil buffer.

During managed loading screen initialization, the active depth-stencil buffer is temporarily set to null after the loading render target state is changed.

EndDraw restored the saved depth-stencil buffer only after calling Clear(). This meant that, during scene transitions, Clear() could be called while GraphicsDevice.DepthStencilBuffer was still null, even though ClearOptions.DepthBuffer and ClearOptions.Stencil were requested. As a result, the game could crash when the loading screen finished.

Restore the saved depth-stencil buffer before clearing the device so the depth and stencil clear operations always have a valid buffer.