aboutsummaryrefslogtreecommitdiffstats
path: root/code/unix/linux_glimp.c
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-04-22 22:14:15 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-04-22 22:14:15 +0000
commit005094d39f4371eb7fa09671ab6b067c0caf0c22 (patch)
tree3ce1bfcd93ba4324d75ee8ca149d0cf190cbe8e0 /code/unix/linux_glimp.c
parent5aa090003b6c47a4d10f11975d7f22a2827956b0 (diff)
downloadioquake3-aero-005094d39f4371eb7fa09671ab6b067c0caf0c22.tar.gz
ioquake3-aero-005094d39f4371eb7fa09671ab6b067c0caf0c22.zip
* Anisotropic texture filtering (from Echon)
git-svn-id: svn://svn.icculus.org/quake3/trunk@719 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/unix/linux_glimp.c')
-rw-r--r--code/unix/linux_glimp.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/code/unix/linux_glimp.c b/code/unix/linux_glimp.c
index 44ffeb3..16a0eda 100644
--- a/code/unix/linux_glimp.c
+++ b/code/unix/linux_glimp.c
@@ -1323,6 +1323,30 @@ static void GLW_InitExtensions( void )
ri.Printf( PRINT_ALL, "...GL_EXT_compiled_vertex_array not found\n" );
}
+ glConfig.textureFilterAnisotropic = qfalse;
+ if ( strstr( glConfig.extensions_string, "GL_EXT_texture_filter_anisotropic" ) )
+ {
+ if ( r_ext_texture_filter_anisotropic->integer ) {
+ qglGetIntegerv( GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &glConfig.maxAnisotropy );
+ if ( glConfig.maxAnisotropy <= 0 ) {
+ ri.Printf( PRINT_ALL, "...GL_EXT_texture_filter_anisotropic not properly supported!\n" );
+ glConfig.maxAnisotropy = 0;
+ }
+ else
+ {
+ ri.Printf( PRINT_ALL, "...using GL_EXT_texture_filter_anisotropic (max: %i)\n", glConfig.maxAnisotropy );
+ glConfig.textureFilterAnisotropic = qtrue;
+ }
+ }
+ else
+ {
+ ri.Printf( PRINT_ALL, "...ignoring GL_EXT_texture_filter_anisotropic\n" );
+ }
+ }
+ else
+ {
+ ri.Printf( PRINT_ALL, "...GL_EXT_texture_filter_anisotropic not found\n" );
+ }
}
static void GLW_InitGamma(void)