From 48a21f6542e799e41735febbda76815e058954ac Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 28 Sep 2012 02:09:04 +0300 Subject: Override inc/dec ref to add/remove atlas images to resource cache. --- src/resources/resource.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/resources/resource.h') diff --git a/src/resources/resource.h b/src/resources/resource.h index b73597d14..cf3555cf5 100644 --- a/src/resources/resource.h +++ b/src/resources/resource.h @@ -52,7 +52,7 @@ class Resource /** * Increments the internal reference count. */ - void incRef(); + virtual void incRef(); /** * Decrements the reference count and deletes the object @@ -61,7 +61,7 @@ class Resource * @return true if the object was deleted * false otherwise. */ - void decRef(); + virtual void decRef(); /** * Return the path identifying this resource. -- cgit v1.2.3-60-g2f50