I know I just asked eariler about bmps and said that I din't want to use SDL, well png's were annoying me because of the lack of documentation on the function I needed so I started sdl. I want to load a heightmap, the picture I want to use is a tga. I said screw that and converted it to bmp. I loaded the code from NeHe using the SDL_LoadBMP function(it works on their picture), but it seg faults on my picture. I even wrote my own bmp and cut the image from the tga and then pasted it on my bmp. gimp said its thing and did the conversion. No avail. Here is the code that doesn't work on my image, but on Nehe's it doesI feel like a beginner, where hello world doesn't work. If anything does anyone here have a heightmap that is a bmp?Code:
If i edit out the glTexImage2D function it doesn't seg, but of course no texture. What would cause it?