Archived

This topic is now archived and is closed to further replies.

Problem with glTexImage2D()

This topic is 4950 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have come across an error in my program where it crashes when glTexImage2D() is called. The function works correctly when a bitmap created in Paint is loaded... however when a bitmap created in Photoshop is loaded it crashes. When does glTexImage2D() crash and what are some of the possible causes?

Share this post


Link to post
Share on other sites
The type is UNSIGNED_BYTE and i''m passing an unsigned char filled with the bitmap data. The bitmap is 24 bpp and is loaded into the following structure:

struct {
unsigned char* imageData;
int width;
int height;
}IMAGE_FILE;

Share this post


Link to post
Share on other sites