- Timestamp:
- 06/03/16 16:24:49 (9 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/engine/material_manager.cc
r491 r498 28 28 { 29 29 gpu_material* result = new gpu_material; 30 sampler smp( sampler::LINEAR , sampler::REPEAT );30 sampler smp( sampler::LINEAR_MIPMAP_LINEAR, sampler::REPEAT ); 31 31 for ( uint32 i = 0; i < size( mat->paths ); ++i ) 32 32 if ( !mat->paths[i].empty() ) -
trunk/src/gl/gl_device.cc
r493 r498 109 109 110 110 // Detect if mipmapping was requested 111 if ( gl_type == GL_TEXTURE_2D && gl_enum != GL_RED_INTEGER && asampler.filter_min != sampler::LINEAR && asampler.filter_min != sampler::NEAREST )112 {113 // TODO: This should not be done if we use framebuffers!114 glTexParameteri( gl_type, GL_GENERATE_MIPMAP, GL_TRUE);115 }111 // if ( gl_type == GL_TEXTURE_2D && gl_enum != GL_RED_INTEGER && asampler.filter_min != sampler::LINEAR && asampler.filter_min != sampler::NEAREST ) 112 // { 113 // // TODO: This should not be done if we use framebuffers! 114 // glTexParameteri( gl_type, GL_GENERATE_MIPMAP, GL_TRUE); 115 // } 116 116 117 117 if ( asampler.filter_max != sampler::NEAREST ) … … 154 154 else 155 155 glTexImage2DMultisample( gl_type, 4, gl_internal, size.x, size.y, 1 ); 156 157 if ( gl_type == GL_TEXTURE_2D && gl_enum != GL_RED_INTEGER && asampler.filter_min != sampler::LINEAR && asampler.filter_min != sampler::NEAREST ) 158 { 159 // TODO: This should not be done if we use framebuffers! 160 glGenerateMipmap( gl_type ); 161 } 162 156 163 157 164 glBindTexture( gl_type, 0 );
Note: See TracChangeset
for help on using the changeset viewer.