projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
336994e
)
objview: set skybox texture filter
author
Brian Paul
<brianp@vmware.com>
Thu, 1 Oct 2009 19:05:25 +0000
(13:05 -0600)
committer
Brian Paul
<brianp@vmware.com>
Thu, 1 Oct 2009 19:14:50 +0000
(13:14 -0600)
progs/objviewer/skybox.c
patch
|
blob
|
history
diff --git
a/progs/objviewer/skybox.c
b/progs/objviewer/skybox.c
index fb6f01942308856408d38f3db6a6aaa55505417b..b298b625f27a319136721d2a708194e747c9f8fb 100644
(file)
--- 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))