From aeeeb2c8d9347f0f25451b0786e7df4935fddcd6 Mon Sep 17 00:00:00 2001 From: vladislavbelov Date: Wed, 17 Jan 2024 19:55:28 +0000 Subject: [PATCH] Makes pipeline state dirty on Vulkan only when VertexInputLayout was changed. This was SVN commit r28011. --- source/renderer/backend/vulkan/DeviceCommandContext.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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(