This commit is contained in:
coulsonwang 2019-10-25 16:41:03 +08:00 committed by minggo
parent c9af873e2e
commit a09806f580
2 changed files with 3 additions and 4 deletions

View File

@ -1403,8 +1403,6 @@ void Terrain::Chunk::updateVerticesForLOD()
}
}
//TODO coulsonwang
// glBufferData(GL_ARRAY_BUFFER, sizeof(TerrainVertexData)*_currentVertices.size(), &_currentVertices[0], GL_STREAM_DRAW);
_oldLod = _currentLod;
}

View File

@ -24,6 +24,7 @@
#include "TextureMTL.h"
#include "Utils.h"
#include "base/ccMacros.h"
CC_BACKEND_BEGIN
@ -43,7 +44,7 @@ namespace
ret = MTLSamplerAddressModeClampToEdge;
break;
default:
assert(false);
CCASSERT(false, "Not supported sampler address mode!");
break;
}
return ret;
@ -130,7 +131,7 @@ namespace
bytesPerBlock = 16;
break;
default:
assert(false); //TODO coulsonwang
CCASSERT(false, "Not supported ETC format!");
break;
}
auto blocksPerRow = (width + (blockWidth - 1)) / blockWidth;