Update CCMeshVertexIndexData.cpp [skip ci]

This commit is contained in:
DelinWorks 2022-07-04 21:15:11 +03:00
parent ad451adb4b
commit 4f1212e655
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ MeshVertexData* MeshVertexData::create(const MeshData& meshdata, CustomCommand::
{
auto& indices = meshdata.subMeshIndices[i];
auto indexBuffer = backend::Device::getInstance()->newBuffer(
indices.bsize() /* * indexSize*/, backend::BufferType::INDEX, backend::BufferUsage::STATIC);
indices.bsize(), backend::BufferType::INDEX, backend::BufferUsage::STATIC);
indexBuffer->autorelease();
#if CC_ENABLE_CACHE_TEXTURE_DATA
indexBuffer->usingDefaultStoredData(false);