akashiraffee
11-18-2009, 06:26 AM
I've done some openGL 3D stuff using glut. I decided to switch to SDL.
But frequently -- particularly if I don't run in fullscreen -- anything SDL with GL in it causes a seg fault in libglx after it exits, which crashes X windows.
This includes demo programs from the SDL Guide. The problem seems to be less likely when the video mode is restricted to 640x480. SDL's video mode stuff is it's own thing, but I did not have any problems when using it without GL (and I didn't have any problems with GL and glut). Does anyone know anything about this -- eg, a way of optimally determining what the video mode should be AND the related "SDL_GL_Atttributes"?
Otherwise I have to find a way to do what I want without SDL. I guess that is okay, except I was hoping that I could port what I'm working on to windows easily, which it will not be easy at all without SDL, I think.
Thanks in advance!
But frequently -- particularly if I don't run in fullscreen -- anything SDL with GL in it causes a seg fault in libglx after it exits, which crashes X windows.
This includes demo programs from the SDL Guide. The problem seems to be less likely when the video mode is restricted to 640x480. SDL's video mode stuff is it's own thing, but I did not have any problems when using it without GL (and I didn't have any problems with GL and glut). Does anyone know anything about this -- eg, a way of optimally determining what the video mode should be AND the related "SDL_GL_Atttributes"?
Otherwise I have to find a way to do what I want without SDL. I guess that is okay, except I was hoping that I could port what I'm working on to windows easily, which it will not be easy at all without SDL, I think.
Thanks in advance!