]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - zone.c
Move Mem_strdup into zone.c
[xonotic/darkplaces.git] / zone.c
diff --git a/zone.c b/zone.c
index 829f25cb9ba8487c52c73ee8abe3c3b177861709..a945a85084be6d9c85301e19111825b319a3bb0c 100644 (file)
--- a/zone.c
+++ b/zone.c
@@ -553,10 +553,20 @@ void MemStats_f(void)
 {
        Mem_CheckSentinelsGlobal();
        R_TextureStats_Print(false, false, true);
+       GL_Mesh_ListVBOs(false);
        Mem_PrintStats();
 }
 
 
+char* Mem_strdup (mempool_t *pool, const char* s)
+{
+       char* p;
+       if (s == NULL) return NULL;
+       p = (char*)Mem_Alloc (pool, strlen (s) + 1);
+       strcpy (p, s);
+       return p;
+}
+
 /*
 ========================
 Memory_Init