diff options
| author | Tobin Ehlis <tobine@google.com> | 2017-09-07 08:39:50 -0600 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2017-09-07 14:32:12 -0600 |
| commit | 28100a9ccf7c4b0ef2143e1d637e6164d9b1372e (patch) | |
| tree | 5f42020c147353dc159e7a613dfa1f29c37857e3 /layers/core_validation.cpp | |
| parent | ce6c8c47250df555b8b06a6b4666bf63fa5246a8 (diff) | |
| download | usermoji-28100a9ccf7c4b0ef2143e1d637e6164d9b1372e.tar.xz | |
layers:Don't access render pass map directly
Use GetRenderPassState() helper function to create FRAMEBUFFER_STATE
object.
Diffstat (limited to 'layers/core_validation.cpp')
| -rw-r--r-- | layers/core_validation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 7e3c796f..bc7b626f 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -7436,7 +7436,7 @@ static bool PreCallValidateCreateFramebuffer(layer_data *dev_data, const VkFrame static void PostCallRecordCreateFramebuffer(layer_data *dev_data, const VkFramebufferCreateInfo *pCreateInfo, VkFramebuffer fb) { // Shadow create info and store in map std::unique_ptr<FRAMEBUFFER_STATE> fb_state( - new FRAMEBUFFER_STATE(fb, pCreateInfo, dev_data->renderPassMap[pCreateInfo->renderPass].get())); + new FRAMEBUFFER_STATE(fb, pCreateInfo, GetRenderPassState(dev_data, pCreateInfo->renderPass))); for (uint32_t i = 0; i < pCreateInfo->attachmentCount; ++i) { VkImageView view = pCreateInfo->pAttachments[i]; |
