forked from 0ad/0ad
Makes pipeline state dirty on Vulkan only when VertexInputLayout was changed.
This was SVN commit r28011.
This commit is contained in:
parent
e3f46bb809
commit
aeeeb2c8d9
@ -824,8 +824,11 @@ void CDeviceCommandContext::SetVertexInputLayout(
|
||||
IVertexInputLayout* vertexInputLayout)
|
||||
{
|
||||
ENSURE(vertexInputLayout);
|
||||
m_IsPipelineStateDirty = true;
|
||||
m_VertexInputLayout = vertexInputLayout->As<CVertexInputLayout>();
|
||||
if (m_VertexInputLayout != vertexInputLayout->As<CVertexInputLayout>())
|
||||
{
|
||||
m_IsPipelineStateDirty = true;
|
||||
m_VertexInputLayout = vertexInputLayout->As<CVertexInputLayout>();
|
||||
}
|
||||
}
|
||||
|
||||
void CDeviceCommandContext::SetVertexBuffer(
|
||||
|
Loading…
Reference in New Issue
Block a user