mirror of https://github.com/axmolengine/axmol.git
fix updateVerticesForLOD
This commit is contained in:
parent
ac0a0ed3bb
commit
3016bf696a
|
@ -1380,7 +1380,7 @@ void Terrain::Chunk::updateVerticesForLOD()
|
||||||
}
|
}
|
||||||
|
|
||||||
glBufferData(GL_ARRAY_BUFFER, sizeof(TerrainVertexData)*_currentVertices.size(), &_currentVertices[0], GL_STREAM_DRAW);
|
glBufferData(GL_ARRAY_BUFFER, sizeof(TerrainVertexData)*_currentVertices.size(), &_currentVertices[0], GL_STREAM_DRAW);
|
||||||
|
_oldLod = _currentLod;
|
||||||
}
|
}
|
||||||
|
|
||||||
Terrain::Chunk::~Chunk()
|
Terrain::Chunk::~Chunk()
|
||||||
|
|
Loading…
Reference in New Issue