5 May
2025
5 May
'25
11:15 a.m.
Fixes a specific game's crash on startup. `d2d_device_context_draw` doesn't accept `D2D_TARGET_UNKNOWN` because `render_target->target.bitmap->rtv` isn't reliably set when calling `ID3D11DeviceContext1_OMSetRenderTargets`. Therefore, we check for that condition and return early. -- v2: d2d1: Fix a crash in DrawGlyphRun method family if no target is set. d2d1: Fix a crash in FillGeometry method family if no target is set. d2d1: Fix a crash in DrawGeometry method family if no target is set. d2d1: Fix a crash in DrawBitmap method family if no target is set. d2d1: Fix a crash in Clear method if no target is set. https://gitlab.winehq.org/wine/wine/-/merge_requests/7959