Maybe a mac variation of this?

Quote
Old OpenGL games

Some old OpenGL games (approx. ten years or older) may crash during start-up because of an extension string buffer-overflow problem.

The problem is a modern OpenGL driver will return a very long string for the glGetString(GL_EXTENSIONS) query and if the application naively copies the string into a fixed-size buffer it can overflow the buffer and crash the application.

The work-around is to set the MESA_EXTENSION_MAX_YEAR environment variable to the approximate release year of the game. This will cause the glGetString(GL_EXTENSIONS) query to only report extensions older than the given year.

For example, if the game was released in 2001, do

export MESA_EXTENSION_MAX_YEAR=2001

before running the game.


Obviously the solution is junk for a new game, and the game iteself may need to be adjusted, but the fact it crashed on a function that operates on strings in gl makes me suspect a similar 'naive' handingling.

Last edited by i30817; 11/07/14 08:16 PM.