PDA

View Full Version : glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);



07-08-2003, 02:43 PM
I am simply trying to add a textured quad to my program. When I add the following lines I have problems:

glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);

I can get the texture to show up fine when I use the above code. The problem is for some reason it messes up other things. For instance; lines that appear the proper color without the line suddenly appear different colors or do not show up at all. (Lighting is not turned on).

satan
07-08-2003, 03:53 PM
Did you disable texturing for drawing the lines?

07-09-2003, 12:02 AM
Egads. You are right. Thank you Satan