Ignore:
Timestamp:
08/07/14 19:06:34 (11 years ago)
Author:
epyon
Message:
  • buffers and vertex_arrays are now handle based
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gfx/mesh_creator.cc

    r295 r302  
    430430        {
    431431                mesh_raw_channel* old = m_data->m_channels[c];
    432                 size_t frame_count = ( old->is_index() ? 1 : old->count / size );
     432                size_t frame_count = ( old->get_buffer_type() == INDEX_BUFFER ? 1 : old->count / size );
    433433                m_data->m_channels[c] = append_channels( old, other->m_channels[c], frame_count );
    434434                NV_ASSERT( m_data->m_channels[c], "Merge problem!" );
    435                 if ( old->is_index() )
     435                if ( old->get_buffer_type() == INDEX_BUFFER )
    436436                {
    437437                        switch ( old->desc.slots[0].etype )
Note: See TracChangeset for help on using the changeset viewer.