Created attachment 44648 [details]
Backtrace of the crash (Tropico with Wine 1.3.16)
When switching to (or starting a game when the last setting was) the hardware accelerated mode in Tropico, the game immediately crashes with the attached backtrace.
Please note, that I wasn't able to attach an GDB to Wine/Tropic, if I do, I get tons of SIGSEGVs in Tropico before I get anywhere close to this bug. So I fear the Wine-generated backtrace must do. If you need further information, beyond the following, please let me know.
X.org: 184.108.40.2061 (1.9.5 RC 1)
The "Severity" was set in accordance with <https://bugs.freedesktop.org/page.cgi?id=fields.html#bug_severity> where a crash is named as critical.
Created attachment 44652 [details] [review]
You can't tell from the backtrace, but I think I know what this is. Wine sometimes does FBO blits directly to the front buffer. This currently tends to crash due to the front buffer surface not being created yet. The attached patch should help with the crash, but it may not be enough to make the actual blit work correctly.
(In reply to comment #1)
> You can't tell from the backtrace, but I think I know what this is. Wine
> sometimes does FBO blits directly to the front buffer. This currently tends to
> crash due to the front buffer surface not being created yet. The attached patch
> should help with the crash, but it may not be enough to make the actual blit
> work correctly.
Your guess was right, the patch from attachment 44652 [details] [review] fixes the bug. Tropico works perfectly now with hardware 3D acceleration enabled (though it's a little bit slow).
Fixed by Henri's commit 5d7c27f5ec2f30c264dc2d53c4980970b3a13ee5. I am cherry-picking it to the 7.9 and 7.10 branches. Closing.