[Bug 41930] Civilization III Complete shows black terrain (Wine compiled with OSMesa support)
WineHQ Bugzilla
wine-bugs at winehq.org
Tue Oct 22 17:33:46 CDT 2019
https://bugs.winehq.org/show_bug.cgi?id=41930
--- Comment #20 from cyberbaud <wbaudler at gb.nrao.edu> ---
Undoing the patch to gdi32.dll mentioned in the initial report fixes the issue.
patch can be seen at https://marc.info/?l=wine-cvs&m=142496389504205&w=2
Looking at the patch, it essentially adds a if statement
if (pixel_formats[context->format - 1].mesa == OSMESA_RGB_565)
type = GL_UNSIGNED_SHORT_5_6_5;
else
type = GL_UNSIGNED_BYTE;
I don't know what the original intend of that change was, but it is responsible
for the black terrain issue in civ3.
A quick fix without re-compiling wine is to turn this if statement in wine's
gdi32.dll.so into a no-op using a hex editor (hexedit):
search for the 3rd instance of 0x6383 in gdi32.dll and change it to 0x0114 and
the black terrain issue is gone.
--
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.
More information about the wine-bugs
mailing list