Changeset 433 for trunk/src/engine
- Timestamp:
- 07/21/15 19:40:00 (10 years ago)
- Location:
- trunk/src/engine
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/engine/particle_engine.cc
r406 r433 435 435 { 436 436 data.affector_count--; 437 NV_LOG_WARNING( "Bad data passed to ", s ub_type, " affector in particle system!" );437 NV_LOG_WARNING( "Bad data passed to ", string_view( sub_type.c_str(), sub_type.size() ), " affector in particle system!" ); 438 438 } 439 439 } … … 441 441 { 442 442 data.affector_count--; 443 NV_LOG_WARNING( "Unknown affector type in particle system! (", s ub_type, ")" );443 NV_LOG_WARNING( "Unknown affector type in particle system! (", string_view( sub_type.c_str(), sub_type.size() ), ")" ); 444 444 } 445 445 } -
trunk/src/engine/program_manager.cc
r399 r433 37 37 } 38 38 39 nv::program program = m_context->get_device()->create_program( string_view( vsource ), string_view( fsource) );39 nv::program program = m_context->get_device()->create_program( string_view( vsource.c_str(), vsource.size() ), string_view( fsource.c_str(), fsource.size() ) ); 40 40 return add( program ); 41 41 } -
trunk/src/engine/resource_system.cc
r431 r433 12 12 { 13 13 m_lua = a_lua_state; 14 lua::register_storage( m_lua, get_storage_name(), string_view( "register_" + get_resource_name().to_string() ) ); 14 std::string delete_me = "register_" + std::string( get_resource_name().data(), get_resource_name().size() ); 15 lua::register_storage( m_lua, get_storage_name(), string_view( delete_me.c_str(), delete_me.size() ) ); 15 16 } 16 17
Note: See TracChangeset
for help on using the changeset viewer.