Results 1 to 3 of 3

Thread: glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);

  1. #1
    Guest

    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);

    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).

  2. #2
    Senior Member Regular Contributor
    Join Date
    Feb 2002
    Posts
    374

    Re: glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);

    Did you disable texturing for drawing the lines?

  3. #3
    Guest

    Re: glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);

    Egads. You are right. Thank you Satan

Similar Threads

  1. GL_LINEAR and GL_NEAREST
    By Maxwell0star in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 09-09-2014, 05:12 AM
  2. skybox - glTexParameteri
    By Floppy29 in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 07-29-2012, 07:23 AM
  3. Replies: 5
    Last Post: 07-19-2012, 12:44 PM
  4. glTexParameteri - correct way to use it ??
    By in forum OpenGL: Basic Coding
    Replies: 8
    Last Post: 01-21-2003, 04:14 AM
  5. glTexParameteri before glTexImage2D
    By ARES in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 10-13-2002, 12:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean