http://bugs.winehq.org/show_bug.cgi?id=35207
--- Comment #10 from Stefan Dösinger stefan@codeweavers.com --- Created attachment 47730 --> http://bugs.winehq.org/attachment.cgi?id=47730 Prevent the GLSL compiler from using local constants for optimizations
I think we're dealing with a driver bug here, specifically a broken optimization the driver applies based on the immediate values available at compile time. This hack prevents the driver from doing so by making the constants uniforms that could in theory be changed after compiling the shader. It works around the bug for me.
Please give the hack a try. In the meantime I'll try to find out which shader is affected by this and what the nature of the broken optimization is. (My gut feeling says it involves a NaN or INF value, just because they're always fun.)