diff options
| author | Gabríel Arthúr Pétursson <gabriel@system.is> | 2017-06-03 23:39:00 +0000 |
|---|---|---|
| committer | Chris Forbes <chrisf@ijw.co.nz> | 2017-06-07 14:57:20 -0700 |
| commit | c93eeeb08afd570d9f354897381c84c7980bb09a (patch) | |
| tree | c717ac4825371655a19167e53ea160ee3d918cff /layers/core_validation.cpp | |
| parent | 892c2949ed7f668435aa55c6d13f76764b61298d (diff) | |
| download | usermoji-c93eeeb08afd570d9f354897381c84c7980bb09a.tar.xz | |
layers: Free pipeline state memory in vkDestroyPipeline
Pipeline states are allocated in vkCreateGraphicsPipelines and
vkCreateComputePipelines.
Diffstat (limited to 'layers/core_validation.cpp')
| -rw-r--r-- | layers/core_validation.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 008b49e3..aec8d92a 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -5300,6 +5300,7 @@ static void PostCallRecordDestroyPipeline(layer_data *dev_data, VkPipeline pipel VK_OBJECT obj_struct) { // Any bound cmd buffers are now invalid invalidateCommandBuffers(dev_data, pipeline_state->cb_bindings, obj_struct); + delete getPipelineState(dev_data, pipeline); dev_data->pipelineMap.erase(pipeline); } |
