Graphics: Fix warning

This commit is contained in:
Jérôme Leclercq 2021-10-19 14:34:35 +02:00
parent 04ee6f0fd1
commit 7e65f4b544
1 changed files with 4 additions and 3 deletions

View File

@ -187,9 +187,6 @@ namespace Nz
{
switch (component.component)
{
case VertexComponent::Unused:
continue;
case VertexComponent::Position:
if (positionLocationIndex != InvalidOption)
config.optionValues[positionLocationIndex] = static_cast<Int32>(locationIndex);
@ -207,6 +204,10 @@ namespace Nz
config.optionValues[uvLocationIndex] = static_cast<Int32>(locationIndex);
break;
case VertexComponent::Unused:
default:
break;
}
++locationIndex;