Hello there!
I’m interested in OpenGL programming and I have a few projects, where
I need OpenGL under Linux. Loading pictures and opening Windows without
SDL is a pain, so I did not want to miss SDL.
Since my first use of SDL I had a lot of problems, all related to
that error message:
Fatal signal: Segmentation Fault (SDL Parachute Deployed)
Even on newly installed Debian systems I got this message. I’ve
worked out a few methodes, that worked for me since now. One of them
is “reinstalling the video drivers”, eg. from NVIDIA or ATI. In the
most cases, this helps fixing the problem, because “libGL.so” gets
reinstalled. Another methode is “reinstalling libsdl1.2-dev” and
"xlibmesa" packages, but non of them work for me right now.
Sometimes the SDL window is full of funny colors if I start my program,
these colors seems to be correlated to the colors of my desktop
background image.
I noticed that in some cases one line of code is responsible for the
segmentation fault:
gluBuild2DMipmaps(GL_TEXTURE_2D, 3, tex_image->w,
tex_image->h, GL_BGR,
GL_UNSIGNED_BYTE, tex_image->pixels);
where tex_image' is of type
SDL_Surface*’. If I change that line to
this one:
glTexImage2D(GL_TEXTURE_2D, 0, 3, tex_image->w,
tex_image->h, 0, GL_BGR,
GL_UNSIGNED_BYTE, tex_image->pixels);
I get these funny colors I’ve talked about, no segemtatian fault anymore.
Is there anyone with a few more fixes for this problem? Any help
would be appreciated.
Thanks.–
Simon Fuhrmann | NightSlayer at gmx.de | http://www.dismember.de
All people talk about the real life, but where can I download it?