https://bugs.winehq.org/show_bug.cgi?id=42873
Józef Kucia joseph.kucia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |joseph.kucia@gmail.com
--- Comment #2 from Józef Kucia joseph.kucia@gmail.com --- (In reply to Alistair Leslie-Hughes from comment #0)
Created attachment 57989 [details] possible solution
The condition in the patch should be "if (!context || ...".
When running "Need for Speed: The Run", it crash on an invalid context.
It happens because the context which was used to issue the query is destroyed with the associated swapchain. I think it's fine to do a NULL check in context_reacquire().