- Timestamp:
- 07/15/13 00:34:53 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gl/gl_texture2d.cc
r121 r160 14 14 { 15 15 glBindTexture( GL_TEXTURE_2D, m_name.get_value() ); 16 17 // Detect if mipmapping was requested 18 if (( asampler.filter_min != sampler::LINEAR && asampler.filter_min != sampler::NEAREST ) || 19 ( asampler.filter_max != sampler::LINEAR && asampler.filter_max != sampler::NEAREST )) 20 { 21 glTexParameteri(GL_TEXTURE_2D, GL_GENERATE_MIPMAP, GL_TRUE); 22 } 16 23 17 24 glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, (int)nv::sampler_filter_to_enum( m_sampler.filter_min ) );
Note: See TracChangeset
for help on using the changeset viewer.