mirror of https://github.com/axmolengine/axmol.git
Fix todo (#20248)
This commit is contained in:
parent
c9af873e2e
commit
a09806f580
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue