[d3d9] Rework FF texcoord processing
Fixes #4035
We need to apply the count after transforming the texcoord.
Passes my tests here: https://gitlab.winehq.org/K0bin/wine/-/blob/ff-texcoord-tests/dlls/d3d9/tests/visual.c#L28402-29023
This fails one of the Wine tests so it's not final yet. I hope we'll be done with this madness at some point. ._.
ah, fair enough
I think this fix is working. Thanks for quick response!
It passes all the upstream Wine tests and I ran it through all games that are known to be affected by ff texcoord processing:
- WoW
- ColdFear
- Phantasy Star Online (both apitraces)
- Snowblind
Needs to be tested:
- Command & Conquer Generals
- Total War Rome
Both Command & Conquer Generals and Total War Rome looks good