https://bugs.winehq.org/show_bug.cgi?id=40306
--- Comment #11 from Henri Verbeet hverbeet@gmail.com --- (In reply to Józef Kucia from comment #9)
This patch should be enough. It has only one issue, fb->render_targets can be NULL when device_clear_render_targets() was called to fill depth/stencil surface.
Yeah, running the tests would have caught that...