Title: [FIX] Fixing a crash when starting OpenArena on OS X Yosemite Post by: duncanisgoed on July 31, 2015, 06:26:35 AM Hello everyone,
Recently I wanted to use OpenArena on Yosemite, but it crashed immediately after I started it with a stack trace like this: Code: Exception Type: EXC_BAD_ACCESS (SIGSEGV) The 'fix' I came up with is to patch libSDL to fail on SDL_SetGammaRamp. It breaks the 'Brightness' setting, but the game is perfectly playable apart from that. This is a link to my MEGA folder with the modified libSDL source code and also a fixed Open Arena.app file. Basically all you have to do is replace libSDL-1.2.0.dylib with the compiled version. Link: libSDL-1.2.15 SetGammaRamp fix (https://mega.co.nz/#F!HpgWWQjJ!6Owrf5lfjA03cfQhyKoMLw) An actual fix would be to port the engine to libSDL-2.0. I did some attempts, but I don't have enough understanding of the engine (yet) to do it so I decided to fix it like this instead. Hope this helps some people, Duncan PS I don't know if this is the right section. Please move it if incorrect. Title: Re: [FIX] Fixing a crash when starting OpenArena on OS X Yosemite Post by: fromhell on July 31, 2015, 07:06:04 AM another fix is to just do brightness and gamma via GLSL shader, which I'm doing in the current git repo. ARB shader probably is also possible, but it's arb and I don't know arb
Title: Re: [FIX] Fixing a crash when starting OpenArena on OS X Yosemite Post by: grey matter on August 01, 2015, 06:28:39 PM ioquake3 is using SDL 2 already, so you might want to merge their upstream changes.
|