summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngine
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-04-21 05:38:47 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-04-21 05:38:47 +0000
commit3cd69ada3f3b2d89fce29f9aff6dd660535e75da (patch)
tree82aaaec9085f572aeb0b0f450519f36ef282e02f /Graphics/GraphicsEngine
parentReworked SetRenderTargets() function to set framebuffer size (diff)
downloadDiligentCore-3cd69ada3f3b2d89fce29f9aff6dd660535e75da.tar.gz
DiligentCore-3cd69ada3f3b2d89fce29f9aff6dd660535e75da.zip
Renamed ClearRenderTargets to ResetRenderTargets
Diffstat (limited to 'Graphics/GraphicsEngine')
-rw-r--r--Graphics/GraphicsEngine/include/DeviceContextBase.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Graphics/GraphicsEngine/include/DeviceContextBase.h b/Graphics/GraphicsEngine/include/DeviceContextBase.h
index 3eeffbda..29bd2398 100644
--- a/Graphics/GraphicsEngine/include/DeviceContextBase.h
+++ b/Graphics/GraphicsEngine/include/DeviceContextBase.h
@@ -134,7 +134,7 @@ public:
/// Returns the render device
IRenderDevice *GetDevice(){return m_pDevice;}
- inline void ClearRenderTargets();
+ inline void ResetRenderTargets();
protected:
inline bool SetBlendFactors(const float *BlendFactors, int Dummy);
@@ -581,11 +581,11 @@ inline void DeviceContextBase<BaseInterface> :: ClearStateCache()
m_ScissorRects[sr] = Rect();
m_NumScissorRects = 0;
- ClearRenderTargets();
+ ResetRenderTargets();
}
template<typename BaseInterface>
-inline void DeviceContextBase<BaseInterface> :: ClearRenderTargets()
+inline void DeviceContextBase<BaseInterface> :: ResetRenderTargets()
{
for (Uint32 rt = 0; rt < m_NumBoundRenderTargets; ++rt)
m_pBoundRenderTargets[rt].Release();