From d27e256f4971375f956a5f2599dbd120b3a4eefd Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 13 Jun 2000 18:45:54 +0000 Subject: use GL_CLAMP_TO_EDGE --- progs/demos/cubemap.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'progs/demos/cubemap.c') 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); -- cgit v1.2.3