summaryrefslogtreecommitdiffstats
path: root/progs
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-10-01 13:05:25 -0600
committerBrian Paul <[email protected]>2009-10-01 13:14:50 -0600
commitc7c62521fbb0d525f89225d9bd42a5443503c967 (patch)
tree4f84cf2df9f94149aa405072d222a80b1d750bbc /progs
parent336994e54cdc105f60ea37a541caed32da4615f1 (diff)
objview: set skybox texture filter
Diffstat (limited to 'progs')
-rw-r--r--progs/objviewer/skybox.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/progs/objviewer/skybox.c b/progs/objviewer/skybox.c
index fb6f0194230..b298b625f27 100644
--- a/progs/objviewer/skybox.c
+++ b/progs/objviewer/skybox.c
@@ -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))