From: divverent Date: Thu, 24 Jun 2010 12:30:14 +0000 (+0000) Subject: TEXF_CLAMP cubemap textures to fix seams (hack alert) X-Git-Tag: xonotic-v0.1.0preview~230^2~230 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5c395daed9fe41e01408b148f6f0c3ae90a1497f;p=xonotic%2Fdarkplaces.git 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 --- 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