From 5c395daed9fe41e01408b148f6f0c3ae90a1497f Mon Sep 17 00:00:00 2001 From: divverent Date: Thu, 24 Jun 2010 12:30:14 +0000 Subject: [PATCH] TEXF_CLAMP cubemap textures to fix seams (hack alert) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10248 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_rmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gl_rmain.c b/gl_rmain.c index cca82116..d334f600 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -6069,7 +6069,7 @@ rtexture_t *R_LoadCubemap(const char *basename) if (developer_loading.integer) Con_Printf("loading cubemap \"%s\"\n", basename); - cubemaptexture = R_LoadTextureCubeMap(r_main_texturepool, basename, cubemapsize, cubemappixels, TEXTYPE_BGRA, (gl_texturecompression_lightcubemaps.integer ? TEXF_COMPRESS : 0) | TEXF_FORCELINEAR, -1, NULL); + cubemaptexture = R_LoadTextureCubeMap(r_main_texturepool, basename, cubemapsize, cubemappixels, TEXTYPE_BGRA, (gl_texturecompression_lightcubemaps.integer ? TEXF_COMPRESS : 0) | TEXF_FORCELINEAR | TEXF_CLAMP, -1, NULL); Mem_Free(cubemappixels); } else -- 2.39.2