+ {
+ Sampler &samp = tex->get_default_sampler();
+ if(is_mipmapped(default_tex_filter))
+ {
+ tex->set_auto_generate_mipmap(true);
+ samp.set_mag_filter(LINEAR);
+ }
+ else
+ samp.set_mag_filter(default_tex_filter);
+ samp.set_min_filter(default_tex_filter);
+ samp.set_max_anisotropy(default_tex_anisotropy);
+ }