use GL_NEAREST texture filter
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 26 Sep 2000 15:25:01 +0000 (15:25 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 26 Sep 2000 15:25:01 +0000 (15:25 +0000)
progs/demos/texenv.c

index b7d7002af8e2b00651d903eeb50a7103b0b28660..6cf855887e20b61f19c25cbd2618911714316aaa 100644 (file)
@@ -548,8 +548,8 @@ static void drawSample( int x, int y, int w, int h,
    glTexEnvi( GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, envMode->mode );
    glTexEnvfv( GL_TEXTURE_ENV, GL_TEXTURE_ENV_COLOR, envColors[envColor] );
 
-   glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR );
-   glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR );
+   glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST );
+   glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST );
 
    glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP );
    glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP );