]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
TEXF_CLAMP cubemap textures to fix seams (hack alert)
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 24 Jun 2010 12:30:14 +0000 (12:30 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Sun, 27 Jun 2010 19:55:34 +0000 (21:55 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10248 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=5c395daed9fe41e01408b148f6f0c3ae90a1497f

gl_rmain.c

index 32184ded3b8e059db24e998bf2a8494e2860b268..db38727b3d056a0250e423ed278221bed0ff38c4 100644 (file)
@@ -6148,7 +6148,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