https://bugs.winehq.org/show_bug.cgi?id=34052
Stefan Dösinger stefan@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |stefan@codeweavers.com
--- Comment #42 from Stefan Dösinger stefan@codeweavers.com --- Created attachment 50908 --> https://bugs.winehq.org/attachment.cgi?id=50908 wined3d: Reorder shader constants.
Can you give this patch a try? It may fix the bug.
The issue here is that The Witcher reads past the end of the vertex shader constant array and gets an undefined value back. On paper d3d promises to return (0.0, 0.0, 0.0, 0.0) in this case, which makes The Witcher happy. In practise d3d isn't reliable either, but reads > 255 return 0 and reads < 0 return other data.
If you have two GPUs please test this patch with both of them. There's a risk that this patch fixes Nvidia GPUs and breaks others.