Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 330 vs 331 for /trunk/Source Code/Environment/Terrain/TerrainChunk.cpp

Diff revisions: vs.
  @@ -27,7 +27,7 @@
27 27
28 28 VegetationDetails vegDetails = parentTerrain->_vegDetails;
29 29 vegDetails.name += stringAlg::toBase("_chunk_" + Util::toString(_chunkID));
30 - _vegetation = New Vegetation(vegDetails); //<Deleted by the sceneGraph on "unload"
30 + _vegetation = MemoryManager_NEW Vegetation(vegDetails); //<Deleted by the sceneGraph on "unload"
31 31 _vegetation->renderState().useDefaultMaterial(false);
32 32 _vegetation->setMaterialTpl(nullptr);
33 33 assert(_vegetation != nullptr);
  @@ -35,9 +35,10 @@
35 35
36 36 TerrainChunk::~TerrainChunk()
37 37 {
38 - for (U8 i = 0; i < Config::TERRAIN_CHUNKS_LOD; i++)
38 + for (U8 i = 0; i < Config::TERRAIN_CHUNKS_LOD; i++) {
39 39 _indice[i].clear();
40 -
40 + }
41 +
41 42 memset(_lodIndOffset, 0, Config::TERRAIN_CHUNKS_LOD * sizeof(U32));
42 43 memset(_lodIndCount, 0, Config::TERRAIN_CHUNKS_LOD * sizeof(U32));
43 44 _chunkIndOffset = 0;