VertexDeclaration: Add check for duplicates

This commit is contained in:
Lynix
2020-03-08 18:10:23 +01:00
parent 28cf4ed6e3
commit 4cf24cde7d
2 changed files with 15 additions and 4 deletions

View File

@@ -10,7 +10,7 @@
namespace Nz
{
inline auto Nz::VertexDeclaration::FindComponent(VertexComponent vertexComponent, std::size_t componentIndex) const -> const Component*
inline auto VertexDeclaration::FindComponent(VertexComponent vertexComponent, std::size_t componentIndex) const -> const Component*
{
assert(componentIndex == 0 || vertexComponent == VertexComponent_Userdata);