http://bugs.winehq.org/show_bug.cgi?id=25362
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Return to Castle |Return to Castle |Wolfenstein 1.0.x crashes |Wolfenstein 1.0.x crashes |(returned GL_EXTENSION > |(GL_EXTENSION string |4096 bytes, truncation code |truncation/overflow bug, |buggy, corrupts stack) |__GL_ExtensionStringVersion | |workaround)
--- Comment #4 from Anastasius Focht focht@gmx.net 2011-06-18 15:19:12 CDT --- Hello again,
I've learned from "kevlarman" on IRC #winehq there exist "__GL_ExtensionStringVersion" environment variable that forces the nvidia driver to limit the returned gl extension string.
Indeed, googling for nvidia documentation brings this up:
--- quote --- Some applications, such as Quake 3, crash after querying the OpenGL extension string
Some applications have bugs that are triggered when the extension string is longer than a certain size. As more features are added to the driver, the length of this string increases and can trigger these sorts of bugs.
You can limit the extensions listed in the OpenGL extension string to the ones that appeared in a particular version of the driver by setting the __GL_ExtensionStringVersion environment variable to a particular version number. For example,
__GL_ExtensionStringVersion=17700 quake3
will run Quake 3 with the extension string that appeared in the 177.* driver series. Limiting the size of the extension string can work around this sort of application bug. --- quote ---
Run the game/demo as follows:
$ __GL_ExtensionStringVersion=17700 wine ./WolfSPDemo.exe
to prevent the overflow. Case closed ;-)
Regards