We don't need to bind vertex buffer multiple times per each draw call.
Change-Id: I1e2bc251c204e1f1739d70d89ebc71316d8abe60
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
}
}
}
+
+ // Reset vertex buffer changed flag now.
+ mImpl->mVertexBuffersChanged = false;
}
// Resolve topology
mImpl->mCurrentVertexBufferBindings.resize(count);
}
// Copy only set slots
- mImpl->mVertexBuffersChanged = false;
- auto toIter = mImpl->mCurrentVertexBufferBindings.begin();
+ auto toIter = mImpl->mCurrentVertexBufferBindings.begin();
for(auto fromIter = bindings, end = bindings + count; fromIter != end; ++fromIter)
{
if(fromIter->buffer != nullptr)