Set Min/MaxLod with glTexParameterf, not glTexParameteri
authorBrian <brian.paul@tungstengraphics.com>
Tue, 12 Feb 2008 22:53:37 +0000 (15:53 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Tue, 12 Feb 2008 22:54:15 +0000 (15:54 -0700)
progs/tests/mipmap_limits.c

index b0a3be99ff3ce5ceb9d5104b32098b6793b63a60..d6d6e467b0ff22779514d72475679915c74e7f72 100644 (file)
@@ -131,8 +131,8 @@ static void display(void)
     glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_BASE_LEVEL, BaseLevel);
     glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAX_LEVEL, MaxLevel);
 
-    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_LOD, MinLod);
-    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAX_LOD, MaxLod);
+    glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_LOD, MinLod);
+    glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAX_LOD, MaxLod);
 
     if (NearestFilter) {
        glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);