From 3016bf696a4b7cc5a57107845a783690e03ead3e Mon Sep 17 00:00:00 2001 From: yangxiao Date: Thu, 5 Nov 2015 15:18:46 +0800 Subject: [PATCH] fix updateVerticesForLOD --- cocos/3d/CCTerrain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/3d/CCTerrain.cpp b/cocos/3d/CCTerrain.cpp index fdf4a43240..8ea2a04726 100644 --- a/cocos/3d/CCTerrain.cpp +++ b/cocos/3d/CCTerrain.cpp @@ -1380,7 +1380,7 @@ void Terrain::Chunk::updateVerticesForLOD() } glBufferData(GL_ARRAY_BUFFER, sizeof(TerrainVertexData)*_currentVertices.size(), &_currentVertices[0], GL_STREAM_DRAW); - + _oldLod = _currentLod; } Terrain::Chunk::~Chunk()