mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-25 16:12:38 +00:00
Replaces occurrences of "VBO" in comments by "backend buffer". Refs cff79b421a
This was SVN commit r26835.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user