https://bugs.winehq.org/show_bug.cgi?id=37912
--- Comment #3 from Sebastian Lackner sebastian@fds-team.de --- Created attachment 50521 --> https://bugs.winehq.org/attachment.cgi?id=50521 Rendering issues with FarCry 1
It seems like the issue with FarCry 1 happens when the game loads the next level. In the first loaded level everything looks fine, but as soon as you enter the next level the rendering looks terrible (see attached screenshot). Workaround: Restart the game after each level and then load the savegame... ;) After reverting the regression commit on top of current HEAD the issue is gone.
Attaching logs is not possible unfortunately, the game printed several GB of FIXMEs (reverting reduces that to about 1MB). The log contains huge amounts of
fixme:d3d:wined3d_debug_callback 0x181a30: "Program undefined behavior warning: Sampler object 0 does not have depth compare enabled. It is being used with depth texture 451, by a program that samples it with a shadow sampler. This is undefined behavior.".
and
err:d3d:wined3d_debug_callback 0x181a30: "GL_INVALID_OPERATION error generated. Not a valid sampler name.". err:d3d:sampler >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0x502) from glBindSampler @ state.c / 3745
Tested with wine-1.7.34-74-gcf92569.