optionally use guarded alloc for tiles compositor, also replace allocation functions...
[blender.git] / source / gameengine / Rasterizer / RAS_IRasterizer.h
index 828ee01d1506af1ecfbdd52c1538bf12c1ef4813..d4c19410eb1a574b2b03a627e38d4d7c29236218 100644 (file)
@@ -416,12 +416,10 @@ public:
 
        virtual void    SetAnisotropicFiltering(short level)=0;
        virtual short   GetAnisotropicFiltering()=0;
-       
-       
+
+
 #ifdef WITH_CXX_GUARDEDALLOC
-public:
-       void *operator new(size_t num_bytes) { return MEM_mallocN(num_bytes, "GE:RAS_IRasterizer"); }
-       void operator delete( void *mem ) { MEM_freeN(mem); }
+       MEM_CXX_CLASS_ALLOC_FUNCS("GE:RAS_IRasterizer")
 #endif
 };