bstouls 9 سال پیش
والد
کامیت
7f094deefc
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      h3d/impl/MemoryManager.hx

+ 2 - 2
h3d/impl/MemoryManager.hx

@@ -91,7 +91,7 @@ class MemoryManager {
 			if( usedMemory - freeMemorySize() == size ) {
 				if( bufferCount >= MAX_BUFFERS )
 					throw "Too many buffer";
-				throw "Memory full";
+				throw "Memory full ("+(size>>10)+" KB,"+bufferCount+" buffers)";
 			}
 		}
 		usedMemory += mem;
@@ -326,7 +326,7 @@ class MemoryManager {
 			bufferCount : bufferCount,
 			freeManagedMemory : free,
 			managedMemory : total,
-			totalVertexMemory : usedMemory,
+			totalMemory : usedMemory + texMemory,
 			textureCount : textures.length,
 			textureMemory : texMemory,
 		};