Probably it's worth to mention that with a slightly older version of Wine I get a crash after applying the patch from this MR because apparently current_context**->**c.current_rt.texture is NULL and later texture pointer gets dereferenced. However with wine-9.21 there is no crash, may be texture being NULL is not a problem or current_context**->**c.current_rt.texture is never NULL.