mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Adds more checks for vertex and index buffer creations.
This was SVN commit r26502.
This commit is contained in:
@@ -216,6 +216,7 @@ void CVertexBuffer::UpdateChunkVertices(VBChunk* chunk, void* data)
|
||||
}
|
||||
else
|
||||
{
|
||||
ENSURE(data);
|
||||
g_Renderer.GetDeviceCommandContext()->UploadBufferRegion(
|
||||
m_Buffer.get(), data, chunk->m_Index * m_VertexSize, chunk->m_Count * m_VertexSize);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user