diff --git a/src/Nazara/Graphics/BasicMaterial.cpp b/src/Nazara/Graphics/BasicMaterial.cpp index cf92f7164..ab31aa67d 100644 --- a/src/Nazara/Graphics/BasicMaterial.cpp +++ b/src/Nazara/Graphics/BasicMaterial.cpp @@ -187,9 +187,6 @@ namespace Nz { switch (component.component) { - case VertexComponent::Unused: - continue; - case VertexComponent::Position: if (positionLocationIndex != InvalidOption) config.optionValues[positionLocationIndex] = static_cast(locationIndex); @@ -207,6 +204,10 @@ namespace Nz config.optionValues[uvLocationIndex] = static_cast(locationIndex); break; + + case VertexComponent::Unused: + default: + break; } ++locationIndex;