http://bugs.winehq.org/show_bug.cgi?id=25006
Summary: Starcraft 2: Fails to render some 2D images. Product: Wine Version: 1.3.6 Platform: All OS/Version: Linux Status: UNCONFIRMED Severity: minor Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: 8jmtfa1e@gmail.com
Created an attachment (id=31685) --> (http://bugs.winehq.org/attachment.cgi?id=31685) Disable S3TC
This bug probably only effects a small amount of Ati graphics cards (or just me) and the bug is probably driver related. Nonetheless I've decided to report the bug here in case there's anyone else having similar problems as I've experienced.
I was having problems getting Starcraft 2 to render correctly. Pure 3D details was rendered correctly while some of the 2D elements where broken. Some of the elements broken was buttons for controlling units and buttons for unit/building production. Screenshots will follow in an attachment. Broken in this context means that the images wasn't rendered correctly.
I searched the internet for a solution for the last few days without any luck. Today I was using the open source graphic driver and noticed that it was able to render 2D images correctly. That’s when I realised it must have been using a different code path. With this new-found knowledge I realised that one of the differences was the implementation of S3TC. A patent encumbered function which compresses textures and which the open source version normally lacks. Firing up google I soon found a fix to disable S3TC in wine. With S3TC disabled I no longer experience any broken 2D images.
I'm using an Ati radeon 2000 series graphics card. I'm stuck at fglrx 10.4 because of various driver bugs.
To enable the fix you need to build wine yourself. The patch itself just changes one line and fools wine into thinking that S3TC isn’t supported by the driver.
A real patch which would have 'fixed' this bug would have been by adding a command line switch or a registry tweak which disabled S3TC. Implementing such a patch is unfortunately beyond my wine knowledge.