http://bugs.winehq.org/show_bug.cgi?id=27194
--- Comment #12 from Silver number048@gmail.com 2011-07-04 10:04:59 CDT --- (In reply to comment #11)
(In reply to comment #10)
trace:d3d9:IDirect3DDevice9Impl_CreateVertexShader Created vertex shader 0x10cb8c58. ... trace:d3d9:IDirect3DDevice9Impl_SetPixelShader iface 0x10eab940, shader 0x10cb8c58.
Looks like it really does create the pixel shader as vertex shader. It may take a while to fix this. As a quick hack you could perhaps try raising the sampler limit ("shader->limits.sampler = 4;") in vertexshader_set_limits().
Spot on. Increasing the limit to 8 bypasses the problem.
I didn't test anything excepts the starting menu and the intro logos and so far everything is much much smoother than before. Before it was lagging a bit and the sound was interrupted. Now it's all smooth. Fixing this bug might actually fix all known bugs for this game so far.
Is this a wine bug or is the game doing things wrongly. Maybe it would be worth it to send a notification to the developer.
Anyway, great work finding the cause and providing a temporal fix. I'm much obliged. :)