diff options
author | Stijn Buys <ingar@osirion.org> | 2010-10-06 15:21:15 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-10-06 15:21:15 +0000 |
commit | 36509ea1a476b30f17b3436edd7f524861257389 (patch) | |
tree | 6648e122d9d1ee7e4bb36430cd1aab3cf1129fda /src/render/textures.cc | |
parent | 64a2a6d71023ab382c996ccdb8e403660fa19916 (diff) |
removed skydome support, corrected skybox edge issue
Diffstat (limited to 'src/render/textures.cc')
-rw-r--r-- | src/render/textures.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/render/textures.cc b/src/render/textures.cc index 25521e9..e252f2d 100644 --- a/src/render/textures.cc +++ b/src/render/textures.cc @@ -194,14 +194,17 @@ size_t Textures::load(const std::string &name, const bool filter) } // enable texture wrapping - glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); - glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); } else { // scaling functions glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); // no mipmaps, base level only glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAX_LEVEL, 0); + + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); } //glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE); |