Skip to content

Commit

Permalink
[OpenGL] Stop tracking CommandLists when their reference count reache…
Browse files Browse the repository at this point in the history
…s 0.
  • Loading branch information
mellinoe committed Sep 9, 2018
1 parent fd28642 commit 2fa3700
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Veldrid/OpenGL/OpenGLGraphicsDevice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,14 @@ private int DecrementCount(OpenGLCommandList glCommandList)
count = -1;
}

_submittedCommandListCounts[glCommandList] = count;
if (count == 0)
{
_submittedCommandListCounts.Remove(glCommandList);
}
else
{
_submittedCommandListCounts[glCommandList] = count;
}
return count;
}

Expand Down

0 comments on commit 2fa3700

Please sign in to comment.