From: Brian Paul Date: Thu, 1 Oct 2009 19:05:25 +0000 (-0600) Subject: objview: set skybox texture filter X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c7c62521fbb0d525f89225d9bd42a5443503c967;p=mesa.git objview: set skybox texture filter --- 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))