summaryrefslogtreecommitdiff
path: root/dxr3singleton.h
diff options
context:
space:
mode:
Diffstat (limited to 'dxr3singleton.h')
-rw-r--r--dxr3singleton.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/dxr3singleton.h b/dxr3singleton.h
index fbc8031..8be1216 100644
--- a/dxr3singleton.h
+++ b/dxr3singleton.h
@@ -41,6 +41,12 @@ class Singleton
static T m_Instance;
return m_Instance;
}
+
+ static T* InstanceP()
+ {
+ static T* m_InstanceP = new T;
+ return m_InstanceP;
+ }
};
#endif /*_DXR3_SINGLETON_H_*/