Changeset 380 for trunk/src/gl/gl_device.cc
- Timestamp:
- 05/29/15 17:28:16 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gl/gl_device.cc
r365 r380 217 217 } 218 218 219 uniform_base* nv::gl_device::get_uniform( program p, const st ring& name, bool fatal /*= true */ ) const219 uniform_base* nv::gl_device::get_uniform( program p, const std::string& name, bool fatal /*= true */ ) const 220 220 { 221 221 const gl_program_info* info = m_programs.get( p ); … … 235 235 } 236 236 237 int nv::gl_device::get_attribute_location( program p, const st ring& name, bool fatal /*= true */ ) const237 int nv::gl_device::get_attribute_location( program p, const std::string& name, bool fatal /*= true */ ) const 238 238 { 239 239 const gl_program_info* info = m_programs.get( p ); … … 347 347 glGetActiveAttrib( p->glid, i, 128, &attr_nlen, &attr_len, &attr_type, name_buffer ); 348 348 349 st ring name( name_buffer, size_t(attr_nlen) );349 std::string name( name_buffer, size_t( attr_nlen ) ); 350 350 351 351 // skip built-ins … … 376 376 glGetActiveUniform( p->glid, i, 128, &uni_nlen, &uni_len, &uni_type, name_buffer ); 377 377 378 st ring name( name_buffer, size_t(uni_nlen) );378 std::string name( name_buffer, size_t( uni_nlen ) ); 379 379 380 380 // skip built-ins … … 385 385 386 386 // check for array 387 st ring::size_type arrchar = name.find('[');388 if ( arrchar != st ring::npos )387 std::string::size_type arrchar = name.find( '[' ); 388 if ( arrchar != std::string::npos ) 389 389 { 390 390 name = name.substr( 0, arrchar );
Note: See TracChangeset
for help on using the changeset viewer.