Commit 1b1216e5 authored by Maciej Suminski's avatar Maciej Suminski

Modified SetOffset (VBO_ITEM/OpenGL GAL) function.

parent a6c8beb7
......@@ -142,8 +142,18 @@ int VBO_ITEM::GetSize() const
void VBO_ITEM::SetOffset( int aOffset )
{
if( m_offset == aOffset )
return;
int delta = aOffset - m_offset;
// Change offset for all the stored indices
for( int i = 0; i < m_size; ++i )
{
m_indices += delta;
}
m_offset = aOffset;
// TODO change offset for all the vertices?
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment