From dc50e6ca0c8d8e61b8298a7947124612e4a834ac Mon Sep 17 00:00:00 2001 From: rachytski Date: Mon, 23 Apr 2012 19:23:38 +0400 Subject: [PATCH] added ResourcePool::ResName for the purpose of logging. --- base/resource_pool.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/base/resource_pool.hpp b/base/resource_pool.hpp index 4e060838e4..fdb354e21f 100644 --- a/base/resource_pool.hpp +++ b/base/resource_pool.hpp @@ -70,6 +70,11 @@ struct BasePoolTraits virtual void UpdateState() { } + + char const * ResName() const + { + return m_factory.ResName(); + } }; /// This traits stores the free elements in a separate pool and has @@ -237,6 +242,7 @@ public: virtual bool IsCancelled() const = 0; virtual void UpdateState() = 0; virtual void SetIsDebugging(bool flag) = 0; + virtual char const * ResName() const = 0; }; // This class tracks OpenGL resources allocation in @@ -300,4 +306,9 @@ public: { m_traits->m_IsDebugging = isDebugging; } + + char const * ResName() const + { + return m_traits->ResName(); + } };