Changeset 433 for trunk/src/gl
- Timestamp:
- 07/21/15 19:40:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gl/gl_device.cc
r406 r433 19 19 m_shader_header = "#version 120\n"; 20 20 for ( auto& i : get_uniform_factory() ) 21 m_shader_header += "uniform "+datatype_to_glsl_type( i.second->get_datatype() )+" "+ i.first.to_string() +";\n";21 m_shader_header += "uniform "+datatype_to_glsl_type( i.second->get_datatype() )+" "+ std::string( i.first.data(), i.first.size() ) +";\n"; 22 22 for ( auto& i : get_link_uniform_factory() ) 23 m_shader_header += "uniform sampler2D "+ i.first.to_string() +";\n";23 m_shader_header += "uniform sampler2D "+std::string( i.first.data(), i.first.size() ) +";\n"; 24 24 } 25 25 … … 212 212 for ( auto& i : *info->m_uniform_map ) 213 213 { 214 auto j = lmap.find( i.first );214 auto j = lmap.find( i.first.c_str() ); 215 215 if ( j != lmap.end() ) 216 216 { … … 218 218 } 219 219 220 auto k = map.find( i.first );220 auto k = map.find( i.first.c_str() ); 221 221 if ( k != map.end() ) 222 222 { … … 238 238 if ( fatal ) 239 239 { 240 NV_LOG_CRITICAL( "gl_device : uniform '", string_view( name ), "' not found in program!" );240 NV_LOG_CRITICAL( "gl_device : uniform '", string_view( name.c_str(), name.size() ), "' not found in program!" ); 241 241 NV_ABORT( "gl_device : uniform not found!" ); 242 242 } … … 257 257 if ( fatal ) 258 258 { 259 NV_LOG_CRITICAL( "gl_device : attribute '", string_view( name ), "' not found in program!" );259 NV_LOG_CRITICAL( "gl_device : attribute '", string_view( name.c_str(), name.size() ), "' not found in program!" ); 260 260 NV_ABORT( "gl_device : attribute not found!" ); 261 261 }
Note: See TracChangeset
for help on using the changeset viewer.