diff options
Diffstat (limited to 'code/renderer')
-rw-r--r-- | code/renderer/tr_shader.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/code/renderer/tr_shader.c b/code/renderer/tr_shader.c index 3de2bba..f628b67 100644 --- a/code/renderer/tr_shader.c +++ b/code/renderer/tr_shader.c @@ -1230,7 +1230,11 @@ static void ParseSkyParms( char **text ) { for (i=0 ; i<6 ; i++) { Com_sprintf( pathname, sizeof(pathname), "%s_%s.tga" , token, suf[i] ); +#ifdef GL_CLAMP_TO_EDGE + shader.sky.outerbox[i] = R_FindImageFile( ( char * ) pathname, qtrue, qtrue, GL_CLAMP_TO_EDGE ); +#else shader.sky.outerbox[i] = R_FindImageFile( ( char * ) pathname, qtrue, qtrue, GL_CLAMP ); +#endif if ( !shader.sky.outerbox[i] ) { shader.sky.outerbox[i] = tr.defaultImage; } |