Skip to main content
GameDev.net gamedev.net
🔒 Locked

Texture Problem

Started by FrigidHelix Sep 4, 2000 at 1:25 PM 0 replies 200+ views
Original Post
FrigidHelix
FrigidHelix
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.
Andrea
Andrea
Try to debug your app to find exactly the ''crash-point''.

Probably you have an error in glTexImage2D() and you run out of your image-buffer. Check texture size and bpp. PCX or BMP loaders should produce the same image in memory...
IpSeDiXiT

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.