diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-04-21 05:38:47 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-04-21 05:38:47 +0000 |
| commit | 3cd69ada3f3b2d89fce29f9aff6dd660535e75da (patch) | |
| tree | 82aaaec9085f572aeb0b0f450519f36ef282e02f /Graphics/GraphicsEngine | |
| parent | Reworked SetRenderTargets() function to set framebuffer size (diff) | |
| download | DiligentCore-3cd69ada3f3b2d89fce29f9aff6dd660535e75da.tar.gz DiligentCore-3cd69ada3f3b2d89fce29f9aff6dd660535e75da.zip | |
Renamed ClearRenderTargets to ResetRenderTargets
Diffstat (limited to 'Graphics/GraphicsEngine')
| -rw-r--r-- | Graphics/GraphicsEngine/include/DeviceContextBase.h | 6 |
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(); |
