[Bug 60292] New: Star Wars: Knights of the Old Republic: graphical overlay/corruption in 3D scenes after starting or loading a game
http://bugs.winehq.org/show_bug.cgi?id=60292 Bug ID: 60292 Summary: Star Wars: Knights of the Old Republic: graphical overlay/corruption in 3D scenes after starting or loading a game Product: Wine Version: unspecified Hardware: x86-64 URL: https://store.steampowered.com/app/32370/STAR_WARS_Kni ghts_of_the_Old_Republic/ OS: Linux Status: NEW Keywords: regression Severity: normal Priority: P2 Component: opengl Assignee: wine-bugs@list.winehq.org Reporter: gyebro69@gmail.com CC: rbernon@codeweavers.com Target Milestone: --- Regression SHA1: 7a6c3c05b68ab549e44fd9a18033c0f52a78910c Distribution: ArchLinux Created attachment 82031 --> http://bugs.winehq.org/attachment.cgi?id=82031 screenshot Star Wars: Knights of the Old Republic has a graphical regression in current Wine git. Wine 11.16 works correctly. The regression is introduced by commit 7a6c3c05b68ab549e44fd9a18033c0f52a78910c opengl32: Always isolate some object names allocated in win32u. The intro videos and main menu render correctly. After starting a new game or loading a saved game, a large coloured/transparent graphical overlay or pattern appears over the 3D scene. Nothing relevant is displayed in the terminal. The issue affects both the Steam and GOG versions of KOTOR I. KOTOR II is not affected. The issue exists only with NVIDIA driver (610.57.04) but not with nouveau. Present under native X11 (XFCE) and when using XWayland on KDE Plasma, but doesn't exist with the native Wayland driver on NVIDIA. Occurs both in virtual desktop mode and Wine fullscreen mode. Workarounds I found to get rid of the corruption midgame: 1. In normal fullscreen mode Alt-Tabbing away from the game and back removes the corruption until the next game launch. 2. Changing certain graphics settings in-game, such as anti-aliasing, anisotropic filtering, or graphics detail level, also removes the corruption. This workaround works in Wine virtual desktop mode as well. These settings cause the game to reload its graphics resources. wine-11.16-348-g9ce1651515d OpenGL vendor string: NVIDIA Corporation OpenGL renderer string: NVIDIA GeForce GTX 1660 SUPER/PCIe/SSE2 OpenGL core profile version string: 4.6.0 NVIDIA 610.57.04 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=60292 --- Comment #1 from Rémi Bernon <rbernon@codeweavers.com> --- I can't reproduce this, is this with the display mode emulation option (checkbox in `wine control desk.cpl`). Could you make a +wgl,+opengl log before/after this change? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=60292 --- Comment #2 from Rémi Bernon <rbernon@codeweavers.com> --- (Haven't tried on NVIDIA, which is probably why I can't) -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=60292 --- Comment #3 from Béla Gyebrószki <gyebro69@gmail.com> --- Created attachment 82033 --> http://bugs.winehq.org/attachment.cgi?id=82033 +wgl,+opengl debug log (bad) - uncompressed 217 MiB In the game's Advanced Graphics Options menu "Frame buffer effects" options needs to be enabled to reproduce the issue in SW:KOTOR. Log attached using the offending commit. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=60292 --- Comment #4 from Béla Gyebrószki <gyebro69@gmail.com> --- Created attachment 82034 --> http://bugs.winehq.org/attachment.cgi?id=82034 +wgl,+opengl debug log (good) - uncompressed 238 MiB Debug log with the previous (good) commit. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=60292 --- Comment #5 from Béla Gyebrószki <gyebro69@gmail.com> --- I tested the Emulate display mode changes option in wine control desk.cpl. The corruption is still reproducible with the option enabled. The appearance changes slightly — the overlay is yellow instead of blue — but the graphical corruption itself is still present. So the issue reproduces both with display mode emulation enabled and disabled. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=60292 Béla Gyebrószki <gyebro69@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |11.17 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=60292 --- Comment #6 from Rémi Bernon <rbernon@codeweavers.com> --- Created attachment 82051 --> http://bugs.winehq.org/attachment.cgi?id=82051 Possible fix Thanks, the issue seems to start with the game creating a pbuffer which for some reason fails on NVIDIA. Things trickle down from there to invalid wglMakeContextCurrentARB calls, to some glGenTextures bypassing the name isolation and the game ending up using a texture name twice. I think the pbuffer creation is supposed to succeed, but nonetheless its failure shouldn't trigger anything bad like that. The attached patch should fix the problem, though it doesn't fix the pbuffer creation failure. Could you check whether the attached patch helps? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=60292 --- Comment #7 from Béla Gyebrószki <gyebro69@gmail.com> --- (In reply to Rémi Bernon from comment #6)
Created attachment 82051 [details] Possible fix Could you check whether the attached patch helps? I tested the patch and can confirm that it fixes the graphical corruption on NVIDIA. The game now renders correctly with Frame Buffer Effects enabled.
-- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=60292 Béla Gyebrószki <gyebro69@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Fixed by SHA1| |5296ede75509b59dcb12a87c354 | |beeb324691ecd Status|NEW |RESOLVED --- Comment #8 from Béla Gyebrószki <gyebro69@gmail.com> --- Fixed with 63da058e9408aa81b2bca1df82f1289f2d3b8aa8 and 5296ede75509b59dcb12a87c354beeb324691ecd -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=60292 Alexandre Julliard <julliard@winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #9 from Alexandre Julliard <julliard@winehq.org> --- Closing bugs fixed in 11.18. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
WineHQ Bugzilla