[Bug 41930] Civilization III Complete shows black terrain (Wine compiled with OSMesa support)

WineHQ Bugzilla wine-bugs at winehq.org
Sun Jan 26 21:49:25 CST 2020


https://bugs.winehq.org/show_bug.cgi?id=41930

nate <nathannichols454 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nathannichols454 at gmail.com

--- Comment #21 from nate <nathannichols454 at gmail.com> ---
(In reply to cyberbaud from comment #20)
> 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.

I think it's actually the 2nd instance

-- 
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