Mesa (master): objview: set skybox texture filter
Brian Paul
brianp at kemper.freedesktop.org
Thu Oct 1 19:17:50 UTC 2009
Module: Mesa
Branch: master
Commit: c7c62521fbb0d525f89225d9bd42a5443503c967
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c7c62521fbb0d525f89225d9bd42a5443503c967
Author: Brian Paul <brianp at vmware.com>
Date: Thu Oct 1 13:05:25 2009 -0600
objview: set skybox texture filter
---
progs/objviewer/skybox.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/progs/objviewer/skybox.c b/progs/objviewer/skybox.c
index fb6f019..b298b62 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))
More information about the mesa-commit
mailing list