Problem with glTexImage2D()
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?
Really, the only time it should crash is if the texture data you pass to it doesn''t match the type and format you say it is.
Post the code.
What kind of bmp are you trying to load? 8 or 24 bpp? Compressed or uncompressed?
What kind of bmp are you trying to load? 8 or 24 bpp? Compressed or uncompressed?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement