svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r22875:22935
[blender-staging.git] / source / gameengine / Rasterizer / RAS_Polygon.h
index 188390f1c6bcd3b4e4a7f1e6b7183f7fb49c1e9e..bd8cfe0be28654c430f3af27350d6c9d1be469a9 100644 (file)
 #include <vector>
 using namespace std;
 
+#ifdef WITH_CXX_GUARDEDALLOC
+#include "MEM_guardedalloc.h"
+#endif
+
 /* polygon flags */
 
 class RAS_Polygon
@@ -86,6 +90,12 @@ public:
 
        RAS_MaterialBucket*     GetMaterial();
        RAS_DisplayArray*       GetDisplayArray();
+       
+#ifdef WITH_CXX_GUARDEDALLOC
+public:
+       void *operator new( unsigned int num_bytes) { return MEM_mallocN(num_bytes, "GE:RAS_Polygon"); }
+       void operator delete( void *mem ) { MEM_freeN(mem); }
+#endif
 };
 
 #endif