From e8df9efebe61d1d797eab10922590b022725d6cd Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Mon, 29 Aug 2011 21:43:39 +0000 Subject: [PATCH] bleh cant correctly update smooth fov for today git-svn-id: http://svn.net-core.org/repos/t-engine4@4290 51575b47-30f0-44d4-a5cc-537603b46e54 --- src/map.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/map.c b/src/map.c index f77b17e7e1..595531ffe6 100644 --- a/src/map.c +++ b/src/map.c @@ -545,8 +545,8 @@ static void setup_seens_texture(map_type *map) glGenTextures(1, &(map->seens_texture)); printf("C Map seens texture: %d (%dx%d)\n", map->seens_texture, map->w, map->h); tglBindTexture(GL_TEXTURE_2D, map->seens_texture); - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); glTexImage2D(GL_TEXTURE_2D, 0, 4, map->w, map->h, 0, GL_BGRA, GL_UNSIGNED_BYTE, NULL); map->seens_map = calloc((map->w)*(map->h)*4, sizeof(GLubyte)); -- GitLab