http://bugs.winehq.org/show_bug.cgi?id=58422
--- Comment #3 from Béla Gyebrószki gyebro69@gmail.com --- (In reply to Rémi Bernon from comment #1)
I don't see any difference in the reported GL_EXTENSIONS string before/after the change, with/without these environment variables. Only difference is that the extensions are now reported in glGetStringi as they should.
I don't know why this regressed but I think you can use an earlier version instead of 17700 and that it should fix the problem?
I tried SoF II with 16900 but that didn't help either.
I should have noted that I tried other games from my GOG library that are known to be affected by bug #25362 but none of them regressed after commit 17b86a90. They do start properly when using the '__GL_ExtensionStringVersion=' workaround. Such games are Return to Castle Wolfenstein, Kingpin, Star Wars: Jedi Academy, Star Wars: Jedi Outcast. Seems only Soldier of Fortune II is affected by this commit.
Another game, Neverwinter Nights Diamond Edition which never required the Nvidia workaround to start, also crashes after commit 17b86a90 and reverting the commit fixes the crash.
How does your patch from comment #2 actually work? I created a new application profile for the game executable (SOF2.exe) in winecfg, then created manually the regkey OpenGL under HKCU>Wine>AppDefaults>SoF2.exe with the key EnabledExtensions.
How should I know which OpenGl extensions should be enabled for a specific game?