layers: Only set up tracking for new descriptors if allocation succeeded.
authorChris Forbes <chrisforbes@google.com>
Fri, 22 Jan 2016 02:44:40 +0000 (15:44 +1300)
committerJon Ashburn <jon@lunarg.com>
Fri, 22 Jan 2016 23:47:37 +0000 (16:47 -0700)
commit514b8cbb051b02cf24ad3893e0c1d0922e184b2e
treeef47a561bfdbedf00a208a520d4e86ff7a842405
parentfeee791c13ddb435d22e42811dfcdfd2ab82830f
layers: Only set up tracking for new descriptors if allocation succeeded.

It's possible for this call to fail -- the pool is exhausted, or the request was simply bogus. In these cases, the returned descriptor set handles are meaningless. Don't shove them in our hashtables.

Signed-off-by: Chris Forbes <chrisforbes@google.com>
layers/object_tracker.h