Advertisement Jump to content


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


32-bit texture problem?

This topic is 5844 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've been trying to debug my font class for the last 3 hours but I cannot figure out what's wrong. I create a font using a 32-bit texture and then store it in a display list. Everything seems to be working fine until I try to print some text. Instead of showing text, it shows white boxes where it should be characters. Really weird. glGetError() shows no errors! I generate the texture with glTexImage2D() and since it's a 32-bit texture I use GL_RGBA. The width and height of the TGA file I'm loading is a power of 2. (256x256) But here's the weirdest thing, if I replace glTexImage2D() with gluBuild2DMipmaps() it suddenly works but with mipmapped textures(which look awful). But if I draw just the loaded TGA to the screen using glDrawPixels() it displays the TGA file perfectly. There's something fishy about glTexImage2D(), that's for sure. What do you think? Thanks in advance, charlieC [edited by - charlieC on January 21, 2003 9:36:36 AM]

Share this post

Link to post
Share on other sites
Using only
as the only texture parameter seems to solve it..

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!