From cdd7791661e8a176360bcaba4397192cc452e94f Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sun, 20 May 2018 12:07:10 -0700 Subject: Couple minor updates --- Graphics/GraphicsEngineVulkan/include/ShaderResourceLayoutVk.h | 2 +- Graphics/GraphicsEngineVulkan/src/ShaderResourceLayoutVk.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'Graphics/GraphicsEngineVulkan') diff --git a/Graphics/GraphicsEngineVulkan/include/ShaderResourceLayoutVk.h b/Graphics/GraphicsEngineVulkan/include/ShaderResourceLayoutVk.h index fb968b43..e52f6b08 100644 --- a/Graphics/GraphicsEngineVulkan/include/ShaderResourceLayoutVk.h +++ b/Graphics/GraphicsEngineVulkan/include/ShaderResourceLayoutVk.h @@ -322,7 +322,7 @@ private: // There is no need to use shared ptr as referenced resource cache is either part of the // parent ShaderVkImpl object or ShaderResourceBindingVkImpl object - ShaderResourceCacheVk *m_pResourceCache; + ShaderResourceCacheVk *m_pResourceCache = nullptr; std::unique_ptr > m_ResourceBuffer; std::array m_NumResources = {}; diff --git a/Graphics/GraphicsEngineVulkan/src/ShaderResourceLayoutVk.cpp b/Graphics/GraphicsEngineVulkan/src/ShaderResourceLayoutVk.cpp index 6a95af24..b9ab2fd7 100644 --- a/Graphics/GraphicsEngineVulkan/src/ShaderResourceLayoutVk.cpp +++ b/Graphics/GraphicsEngineVulkan/src/ShaderResourceLayoutVk.cpp @@ -325,7 +325,6 @@ void ShaderResourceLayoutVk::VkResource::UpdateDescriptorHandle(VkDescriptorSet WriteDescrSet.pTexelBufferView = pTexelBufferView; ParentResLayout.m_pLogicalDevice->UpdateDescriptorSets(1, &WriteDescrSet, 0, nullptr); - } bool ShaderResourceLayoutVk::VkResource::UpdateCachedResource(ShaderResourceCacheVk::Resource& DstRes, -- cgit v1.2.3