objview: set skybox texture filter
authorBrian Paul <brianp@vmware.com>
Thu, 1 Oct 2009 19:05:25 +0000 (13:05 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 1 Oct 2009 19:14:50 +0000 (13:14 -0600)
progs/objviewer/skybox.c

index fb6f01942308856408d38f3db6a6aaa55505417b..b298b625f27a319136721d2a708194e747c9f8fb 100644 (file)
@@ -80,6 +80,10 @@ LoadSkyBoxCubeTexture(const char *filePosX,
    glGenTextures(1, &tex);
    glBindTexture(GL_TEXTURE_CUBE_MAP, tex);
 
+   glTexParameteri(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
+   glTexParameteri(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_MIN_FILTER,
+                   GL_LINEAR_MIPMAP_NEAREST);
+
    if (!load(GL_TEXTURE_CUBE_MAP_POSITIVE_X, filePosX, GL_TRUE, GL_TRUE))
       return 0;
    if (!load(GL_TEXTURE_CUBE_MAP_NEGATIVE_X, fileNegX, GL_TRUE, GL_TRUE))