http://bugs.winehq.org/show_bug.cgi?id=58602
Bug ID: 58602 Summary: Screen Issue in Colin McRae Rally 2 Product: Wine Version: 10.13 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winex11.drv Assignee: wine-bugs@winehq.org Reporter: marcinzw@gmail.com Regression SHA1: ae487930f8d3811a7434dc2cbb561982c894f5ba Distribution: ---
The screen issue in Colin McRae Rally 2, originally reported in Bug #58488, is still happening in Wine 10.13. After the intro video plays, the screen just stays frozen when running the game in “Emulate a virtual desktop” mode – you can still hear the sound, but nothing shows up. The patch I posted in Bug #58488 still fixes it, though.
--- a/dlls/winex11.drv/opengl.c +++ b/dlls/winex11.drv/opengl.c @@ -1462,7 +1462,7 @@ static BOOL x11drv_surface_swap( struct opengl_drawable *base ) if (pglXWaitForSbcOML) pglXWaitForSbcOML( gdi_display, gl->drawable, target_sbc, &ust, &msc, &sbc ); }
- if (InterlockedCompareExchange( &base->client->offscreen, 0, 0 )) + //if (InterlockedCompareExchange( &base->client->offscreen, 0, 0 )) { if (!pglXWaitForSbcOML) XFlush( gdi_display ); client_surface_present( base->client, gl->hdc );
http://bugs.winehq.org/show_bug.cgi?id=58602
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression
http://bugs.winehq.org/show_bug.cgi?id=58602
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |rbernon@codeweavers.com
--- Comment #1 from Ken Sharp imwellcushtymelike@gmail.com ---
The patch I posted in Bug #58488
Can you check that bug number?
ae487930f8d3811a7434dc2cbb561982c894f5ba
winex11: Create client surfaces for opengl drawables.
http://bugs.winehq.org/show_bug.cgi?id=58602
--- Comment #2 from MarcinZw marcinzw@gmail.com ---
The patch I posted in Bug #58488
Can you check that bug number?
Yes, I've checked Bug #58488. The same patch I submitted there as well.
ae487930f8d3811a7434dc2cbb561982c894f5ba
winex11: Create client surfaces for opengl drawables.
Commit ae48793.. caused the issue. It included a bunch of refactoring and some extra checks. Looks like removing the condition check in "x11drv_surface_swap" (which wasn't there before) fixes it, and the game is working fine now.
http://bugs.winehq.org/show_bug.cgi?id=58602
Anton Baskanov baskanov@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |baskanov@gmail.com
--- Comment #3 from Anton Baskanov baskanov@gmail.com --- This bug also affects Cobra 11: Nitro Demo: https://fileplanet.download.it/p-30157/Alarm-for-Cobra-11-Nitro-Demo
AFAIR the issue is caused by the game using DirectDraw and D3D9 in the same window.
http://bugs.winehq.org/show_bug.cgi?id=58602
--- Comment #4 from Rémi Bernon rbernon@codeweavers.com --- Would you mind checking again with 10.15 if this is still happening? I've found and hopefully fixed various issues with GL drawables.
http://bugs.winehq.org/show_bug.cgi?id=58602
--- Comment #5 from Anton Baskanov baskanov@gmail.com --- The issue is still present in Wine 10.15. Tested Colin McRae Rally 2.0 and Cobra 11: Nitro Demo.
http://bugs.winehq.org/show_bug.cgi?id=58602
--- Comment #6 from MarcinZw marcinzw@gmail.com --- I can confirm the issue is still present for me as well with Wine 10.15. Tested with Colin McRae Rally 2.0 — same behavior as described: after the intro plays, the screen stays frozen in virtual desktop mode while audio continues.
http://bugs.winehq.org/show_bug.cgi?id=58602
--- Comment #7 from Rémi Bernon rbernon@codeweavers.com --- I believe https://gitlab.winehq.org/wine/wine/-/merge_requests/8975 should fix this.
http://bugs.winehq.org/show_bug.cgi?id=58602
--- Comment #8 from Anton Baskanov baskanov@gmail.com --- (In reply to Rémi Bernon from comment #7)
I believe https://gitlab.winehq.org/wine/wine/-/merge_requests/8975 should fix this.
I tested the patch and can confirm that it fixes the issue in both games.
http://bugs.winehq.org/show_bug.cgi?id=58602
Rémi Bernon rbernon@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED Fixed by SHA1| |36f4400badc14014921d238d3a0 | |2f386c47277fa
--- Comment #9 from Rémi Bernon rbernon@codeweavers.com --- Should be fixed with 36f4400badc14014921d238d3a02f386c47277fa then, thanks for the report.
http://bugs.winehq.org/show_bug.cgi?id=58602
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #10 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 10.16.