layers: Remove lastBound state reset in destructor
authorTobin Ehlis <tobine@google.com>
Thu, 19 May 2016 12:58:13 +0000 (06:58 -0600)
committerTobin Ehlis <tobine@google.com>
Thu, 19 May 2016 12:58:13 +0000 (06:58 -0600)
No need to reset this state right before GLOBAL_CB_NODE is destroyed.

layers/core_validation.cpp

index 3e5360b..934a228 100644 (file)
@@ -77,7 +77,6 @@ GLOBAL_CB_NODE::~GLOBAL_CB_NODE() {
         for (auto set : lastBound[i].uniqueBoundSets) {
             set->RemoveBoundCommandBuffer(this);
         }
-        lastBound[i].reset();
     }
 }