diff --git a/source/renderer/backend/vulkan/DeviceCommandContext.cpp b/source/renderer/backend/vulkan/DeviceCommandContext.cpp index aad51fbb5b..d185388b60 100644 --- a/source/renderer/backend/vulkan/DeviceCommandContext.cpp +++ b/source/renderer/backend/vulkan/DeviceCommandContext.cpp @@ -824,8 +824,11 @@ void CDeviceCommandContext::SetVertexInputLayout( IVertexInputLayout* vertexInputLayout) { ENSURE(vertexInputLayout); - m_IsPipelineStateDirty = true; - m_VertexInputLayout = vertexInputLayout->As(); + if (m_VertexInputLayout != vertexInputLayout->As()) + { + m_IsPipelineStateDirty = true; + m_VertexInputLayout = vertexInputLayout->As(); + } } void CDeviceCommandContext::SetVertexBuffer(