Changeset 141


Ignore:
Timestamp:
07/03/13 19:46:30 (12 years ago)
Author:
epyon
Message:
  • array2d - fixed [] operator
  • mesh - fixed get_attribute
Location:
trunk/nv
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/nv/array2d.hh

    r132 r141  
    172172                inline const_reference operator[] ( const ivec2& c ) const
    173173                {
    174                         NV_ASSERT( c.x >= 0 && c.y >= 0 && x < m_size.x && y < m_size.y, "Bad parameters passed to array2d[]" );
     174                        NV_ASSERT( c.x >= 0 && c.y >= 0 && c.x < m_size.x && c.y < m_size.y, "Bad parameters passed to array2d[]" );
    175175                        return m_data[ c.y * m_size.x + c.x ];
    176176                }
  • trunk/nv/interface/mesh.hh

    r121 r141  
    9494                {
    9595                        map::iterator i = m_map.find( attr );
    96                         if ( i != m_map.end() && i->second->get_type() != type_to_enum<T>() )
     96                        if ( i != m_map.end() && i->second->get_type() != type_to_enum<T>::type )
    9797                        {
    9898                                return ((vertex_attribute<T>*)(i->second));
Note: See TracChangeset for help on using the changeset viewer.