[Bug 25362] Return to Castle Wolfenstein 1.0.x crashes (GL_EXTENSION string truncation/overflow bug, __GL_ExtensionStringVersion workaround)

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Jun 18 15:19:13 CDT 2011


Anastasius Focht <focht at 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 at 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

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 ;-)


Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.

More information about the wine-bugs mailing list