texture set GL_CLAMP_TO_EDGE

This commit is contained in:
songchengjiang 2015-07-01 18:06:17 +08:00
parent f4a81f0e53
commit da5e077b55
1 changed files with 2 additions and 0 deletions

View File

@ -231,6 +231,8 @@ bool TextureCube::init(const std::string& positive_x, const std::string& negativ
glTexParameteri(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
glTexParameteri(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
_name = handle;