mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2025-02-21 10:41:08 +00:00
* ATI skybox bug fix
This commit is contained in:
parent
0b6beec202
commit
3271b52bf5
1 changed files with 4 additions and 0 deletions
|
@ -1230,7 +1230,11 @@ static void ParseSkyParms( char **text ) {
|
||||||
for (i=0 ; i<6 ; i++) {
|
for (i=0 ; i<6 ; i++) {
|
||||||
Com_sprintf( pathname, sizeof(pathname), "%s_%s.tga"
|
Com_sprintf( pathname, sizeof(pathname), "%s_%s.tga"
|
||||||
, token, suf[i] );
|
, 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 );
|
shader.sky.outerbox[i] = R_FindImageFile( ( char * ) pathname, qtrue, qtrue, GL_CLAMP );
|
||||||
|
#endif
|
||||||
if ( !shader.sky.outerbox[i] ) {
|
if ( !shader.sky.outerbox[i] ) {
|
||||||
shader.sky.outerbox[i] = tr.defaultImage;
|
shader.sky.outerbox[i] = tr.defaultImage;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue