From 3a87df1e378a6d46ca1280242109d8206c303cf6 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sat, 25 Aug 2018 08:54:12 -0700 Subject: Added comment --- Graphics/GraphicsEngine/include/DeviceContextBase.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Graphics/GraphicsEngine') 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 m_pPipelineState; /// Strong reference to the bound index buffer. -- cgit v1.2.3