Changeset 501 for trunk/src/engine/material_manager.cc
- Timestamp:
- 06/15/16 18:34:37 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/engine/material_manager.cc
r498 r501 20 20 uint8 data[2 * 2 * 3]; 21 21 nv::raw_fill_n( data, 2 * 2 * 3, 0 ); 22 m_default = m_context-> get_device()->create_texture( ivec2(2,2), nv::image_format( nv::RGB ), nv::sampler(), data );22 m_default = m_context->create_texture( ivec2(2,2), nv::image_format( nv::RGB ), nv::sampler(), data ); 23 23 } 24 24 … … 34 34 if ( auto data = m_image_manager->get( mat->paths[i] ).lock() ) 35 35 { 36 result->textures[i] = m_context-> get_device()->create_texture( &*data, smp );36 result->textures[i] = m_context->create_texture( &*data, smp ); 37 37 } 38 38 } … … 53 53 for ( const texture& t : m->textures ) 54 54 { 55 m_context-> get_device()->release( t );55 m_context->release( t ); 56 56 } 57 57 }
Note: See TracChangeset
for help on using the changeset viewer.