OpenGL: auxDIBImageLoad Can't find file?

AUX_RGBImageRec *pBitmap = NULL;

if(!strFileName) return;

pBitmap = auxDIBImageLoad(strFileName);

if(pBitmap == NULL) exit(0);

This is the code i'm using to open a bitmap file and convert it to a texture. strFileName is assigned. the check through pBitmap == NULL always returns true and I get an error that my program can't open DIB File Bitmap.bmp (the file name in strFileName).
The image file is in the same directory as the exe.
I'm trying to convert this to a screensaver, and though it has afew problems, it works normally except for finding this file.
I have tried specifiying the directory but it doesn't seem to work.

Any ideas?

Thanks everyone,
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!