Replaces occurrences of "VBO" in comments by "backend buffer". Refs cff79b421a

This was SVN commit r26835.
This commit is contained in:
vladislavbelov
2022-04-27 20:04:56 +00:00
parent d8b8128abb
commit ac60b12045
7 changed files with 41 additions and 38 deletions
+4 -2
View File
@@ -320,9 +320,11 @@ void CTexturedLineRData::Update(const SOverlayTexturedLine& line)
m_VB = g_VBMan.AllocateChunk(
sizeof(SVertex), vertices.size(), Renderer::Backend::GL::CBuffer::Type::VERTEX, false);
if (m_VB) // allocation might fail (e.g. due to too many vertices)
// Allocation might fail (e.g. due to too many vertices).
if (m_VB)
{
m_VB->m_Owner->UpdateChunkVertices(m_VB.Get(), &vertices[0]); // copy data into VBO
// Copy data into backend buffer.
m_VB->m_Owner->UpdateChunkVertices(m_VB.Get(), &vertices[0]);
for (size_t k = 0; k < indices.size(); ++k)
indices[k] += static_cast<u16>(m_VB->m_Index);