Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

fix minimize raster memory fragmentation option (#322)

shun-iwasawafc0e222c4a4d
diff --git a/toonz/sources/common/tsystem/tbigmemorymanager.cpp b/toonz/sources/common/tsystem/tbigmemorymanager.cpp
index 13872b424..3feef28e2 100644
--- a/toonz/sources/common/tsystem/tbigmemorymanager.cpp
+++ b/toonz/sources/common/tsystem/tbigmemorymanager.cpp
@@ -220,6 +220,8 @@ UCHAR *TBigMemoryManager::getBuffer(UINT size)
chunkSize = it->second.m_size;
it++;
}
+ if (address)
+ memset(address, 0x00, size);
return address;
}