optionally use guarded alloc for tiles compositor, also replace allocation functions...
[blender.git] / source / gameengine / Rasterizer / RAS_IPolygonMaterial.h
index 527114b300f3debb478d422885f5404af9bbdf3b..0f89af490d832a24d67b577e7ae08ba2fd6bf1b9 100644 (file)
@@ -185,12 +185,10 @@ public:
         * PreCalculate texture gen
         */
        virtual void OnConstruction(int layer){}
-               
-               
+
+
 #ifdef WITH_CXX_GUARDEDALLOC
-public:
-       void *operator new(size_t num_bytes) { return MEM_mallocN(num_bytes, "GE:RAS_IPolyMaterial"); }
-       void operator delete( void *mem ) { MEM_freeN(mem); }
+       MEM_CXX_CLASS_ALLOC_FUNCS("GE:RAS_IPolyMaterial")
 #endif
 };