diff options
-rw-r--r-- | src/demos/cuberender.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/demos/cuberender.c b/src/demos/cuberender.c index 17f9d47a..522c45f7 100644 --- a/src/demos/cuberender.c +++ b/src/demos/cuberender.c @@ -294,6 +294,9 @@ CreateCubeTexture(GLint size) glTexParameteri(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_MAG_FILTER, GL_NEAREST); } + 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); + for (face = 0; face < 6; face++) { glTexImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_X + face, 0, GL_RGBA, size, size, 0, |