https://bugs.winehq.org/show_bug.cgi?id=40306
--- Comment #9 from Józef Kucia joseph.kucia@gmail.com --- (In reply to Henri Verbeet from comment #8)
Created attachment 53963 [details] patch
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.