Adds more checks for vertex and index buffer creations.

This was SVN commit r26502.
This commit is contained in:
vladislavbelov
2022-02-27 20:21:07 +00:00
parent 10c0d813bf
commit 1ff3b45a1e
4 changed files with 10 additions and 1 deletions
+1
View File
@@ -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);
}