[SDL] resizing SDL opengl window

Gerry trick at icculus.org
Mon Jan 24 19:33:19 PST 2005

Will Childman wrote:
> I'm writing an opengl demo with SDL. I got this error when I try to resize my
> window:
> Fatal signal: Segmentation Fault (SDL Parachute Deployed)
> Xlib: unexpected async reply (sequence 0xe4)!

You're calling SDL and OpenGL stuff from multiple threads (which is a
big no-no), and mayhem ensues.  Either rewrite the code to not use that
timer, or use a single SDL_PushEvent in the callback and test for that
in the event loop (should be safe).

- Gerry

More information about the SDL mailing list