Skip to content
Snippets Groups Projects
Commit e8df9efe authored by dg's avatar dg
Browse files

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
parent e4d1f615
No related branches found
No related tags found
No related merge requests found
...@@ -545,8 +545,8 @@ static void setup_seens_texture(map_type *map) ...@@ -545,8 +545,8 @@ static void setup_seens_texture(map_type *map)
glGenTextures(1, &(map->seens_texture)); glGenTextures(1, &(map->seens_texture));
printf("C Map seens texture: %d (%dx%d)\n", map->seens_texture, map->w, map->h); printf("C Map seens texture: %d (%dx%d)\n", map->seens_texture, map->w, map->h);
tglBindTexture(GL_TEXTURE_2D, map->seens_texture); tglBindTexture(GL_TEXTURE_2D, map->seens_texture);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); 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); 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)); map->seens_map = calloc((map->w)*(map->h)*4, sizeof(GLubyte));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment