UGUIDOTS icon indicating copy to clipboard operation
UGUIDOTS copied to clipboard

Command Buffer Null Reference

Open psuong opened this issue 4 years ago • 1 comments

NullReferenceException: Object reference not set to an instance of an object
UnityEngine.Rendering.CommandBufferPool+<>c.<.cctor>b__4_0 (UnityEngine.Rendering.CommandBuffer x)

There should be a check for when I release the CommandBuffer if you never created one to begin with.

psuong avatar Dec 20 '20 16:12 psuong

https://github.com/InitialPrefabs/UGUIDOTS/commit/9976a9e03f94ebf8fdcf1d4630c58a8574c85ef7

Added in checks to ensure that a CommandBuffer is disposed and released if it's not null. I will close this issue when I finish merging everything to the main branch.

psuong avatar Dec 22 '20 05:12 psuong