Original Post
I have written a class which loads PCX files, and want to use this to load textures in my OpenGL projects.
The loading routines work, since I have tested them and was able to successfully load images, however, when I try and use that data to set a texture, it crashes. The data is simply RGBRGBRGB data for each pixel.
When i use the GLAUX equivalent on a BMP:
TextureImage = auxDIBImageLoad(pathname);
it works fine. When i use the data from the 2 image loaders, I can paint an identical picture, with the only exception being the BMP is flipped vertically.
Plz help me fix this problem. I am very confused as to what is wrong with my image loader, since it works fine when not in conjunction with opengl.