diff options
Diffstat (limited to 'progs/demos/cubemap.c')
-rw-r--r-- | progs/demos/cubemap.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/progs/demos/cubemap.c b/progs/demos/cubemap.c index 620a2d65330..268c431f147 100644 --- a/progs/demos/cubemap.c +++ b/progs/demos/cubemap.c @@ -1,4 +1,4 @@ -/* $Id: cubemap.c,v 1.1 2000/05/30 01:18:29 brianp Exp $ */ +/* $Id: cubemap.c,v 1.2 2000/06/13 18:45:54 brianp Exp $ */ /* * GL_ARB_texture_cube_map demo @@ -203,12 +203,15 @@ static void init( void ) GL_RGB, GL_UNSIGNED_BYTE, image); } - /* - glTexParameteri(GL_TEXTURE_CUBE_MAP_ARB, GL_TEXTURE_MIN_FILTER, GL_LINEAR); - glTexParameteri(GL_TEXTURE_CUBE_MAP_ARB, GL_TEXTURE_MAG_FILTER, GL_LINEAR); - */ +#if 1 glTexParameteri(GL_TEXTURE_CUBE_MAP_ARB, GL_TEXTURE_MIN_FILTER, GL_NEAREST); glTexParameteri(GL_TEXTURE_CUBE_MAP_ARB, GL_TEXTURE_MAG_FILTER, GL_NEAREST); +#else + glTexParameteri(GL_TEXTURE_CUBE_MAP_ARB, GL_TEXTURE_MIN_FILTER, GL_LINEAR); + glTexParameteri(GL_TEXTURE_CUBE_MAP_ARB, GL_TEXTURE_MAG_FILTER, GL_LINEAR); +#endif + glTexParameteri(GL_TEXTURE_CUBE_MAP_ARB, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); + glTexParameteri(GL_TEXTURE_CUBE_MAP_ARB, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); glEnable(GL_TEXTURE_CUBE_MAP_ARB); |