Skip to content
Permalink
Browse files

[Graphics] Compare InputElements length before comparing elements

  • Loading branch information
xen2 committed Jul 26, 2019
1 parent 66d869a commit 76dbcc023f8eb9cafd58115ad4c859b5f36d8e9b
Showing with 2 additions and 0 deletions.
  1. +2 −0 sources/engine/Xenko.Graphics/PipelineStateDescription.cs
@@ -83,6 +83,8 @@ public bool Equals(PipelineStateDescription other)
return false;
if (InputElements != null)
{
if (InputElements.Length != other.InputElements.Length)
return false;
for (int i = 0; i < InputElements.Length; ++i)
{
if (!InputElements[i].Equals(other.InputElements[i]))

0 comments on commit 76dbcc0

Please sign in to comment.
You can’t perform that action at this time.