summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngine
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-08-25 15:54:12 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-08-25 15:54:12 +0000
commit3a87df1e378a6d46ca1280242109d8206c303cf6 (patch)
tree95aa4d33862c825a02244a69f3c0c458010a918e /Graphics/GraphicsEngine
parentMore updates to ShaderResourceLayoutD3D12 (diff)
downloadDiligentCore-3a87df1e378a6d46ca1280242109d8206c303cf6.tar.gz
DiligentCore-3a87df1e378a6d46ca1280242109d8206c303cf6.zip
Added comment
Diffstat (limited to 'Graphics/GraphicsEngine')
-rw-r--r--Graphics/GraphicsEngine/include/DeviceContextBase.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Graphics/GraphicsEngine/include/DeviceContextBase.h b/Graphics/GraphicsEngine/include/DeviceContextBase.h
index 4a78a2e8..8eb752d1 100644
--- a/Graphics/GraphicsEngine/include/DeviceContextBase.h
+++ b/Graphics/GraphicsEngine/include/DeviceContextBase.h
@@ -155,7 +155,9 @@ protected:
Uint32 m_NumVertexStreams = 0;
/// Strong reference to the bound pipeline state object.
- /// Use final PSO implementation type to avoid virtual calls to AddRef()/Release()
+ /// Use final PSO implementation type to avoid virtual calls to AddRef()/Release().
+ /// We need to keep strong reference as we examine previous pipeline state in
+ /// SetPipelineState()
RefCntAutoPtr<PipelineStateImplType> m_pPipelineState;
/// Strong reference to the bound index buffer.