I took Tut6 (textured box) and decided I wanted to see the frame rates so I jumped up to the tut 13 (Bitmap fonts) I have the text working fine, placed on the screen giving me my framerates, BUT.. I decided to change textures to a simple black/white texture I made, and discovered my text force changed to black. =\
This is the code AFTER the default loading of the texture and box.
glPrint("FrameRate :%04d", FRate);
What am I missing...
I had the same identical problem as you and the only one thing I was able to do to let the code work correctly was to call glDisable(GL_TEXTURE) before the call to glPrint and then to call glEnable(GL_TEXTURE) after it.
This tecnique works but I really don''t understand why there is this problem and I don''t know if my method is formally correct, anyway it works.....
Still haven''t figured this problem out. aside from the work-a-round, I resampled my bmp into a 256 color since it WAS 16bit, that didn''t help. =( I figured the GL unit may be using the palette index so I re-arranged the colors only to discover that the text is forced to whatever color happens to be the "PRIMARY" color on the image.
It must be using the same color buffer that the texture is using. is there a way to change that....