diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2020-10-07 21:12:45 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2020-10-07 21:12:45 +0000 |
| commit | c75307ce6d2d3d18b9ad7ba0bbcf2e2e59ba5a2c (patch) | |
| tree | 8ed496ca42fc711e1ff9ac344b17e6a0c0824cfb /Graphics/GraphicsEngineVulkan | |
| parent | Fixed typo (diff) | |
| download | DiligentCore-c75307ce6d2d3d18b9ad7ba0bbcf2e2e59ba5a2c.tar.gz DiligentCore-c75307ce6d2d3d18b9ad7ba0bbcf2e2e59ba5a2c.zip | |
Few minor updates
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
| -rw-r--r-- | Graphics/GraphicsEngineVulkan/src/ShaderResourceBindingVkImpl.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Graphics/GraphicsEngineVulkan/src/ShaderResourceBindingVkImpl.cpp b/Graphics/GraphicsEngineVulkan/src/ShaderResourceBindingVkImpl.cpp index 6e6c142f..53a92a59 100644 --- a/Graphics/GraphicsEngineVulkan/src/ShaderResourceBindingVkImpl.cpp +++ b/Graphics/GraphicsEngineVulkan/src/ShaderResourceBindingVkImpl.cpp @@ -87,10 +87,9 @@ ShaderResourceBindingVkImpl::ShaderResourceBindingVkImpl(IReferenceCounters* pR ShaderResourceBindingVkImpl::~ShaderResourceBindingVkImpl() { - PipelineStateVkImpl* pPSO = ValidatedCast<PipelineStateVkImpl>(m_pPSO); for (Uint32 s = 0; s < m_NumShaders; ++s) { - auto& VarDataAllocator = pPSO->GetSRBMemoryAllocator().GetShaderVariableDataAllocator(s); + auto& VarDataAllocator = m_pPSO->GetSRBMemoryAllocator().GetShaderVariableDataAllocator(s); m_pShaderVarMgrs[s].DestroyVariables(VarDataAllocator); m_pShaderVarMgrs[s].~ShaderVariableManagerVk(); } |
