From 4f1212e65507911a6552f64bf6f28a352efe7d87 Mon Sep 17 00:00:00 2001 From: DelinWorks Date: Mon, 4 Jul 2022 21:15:11 +0300 Subject: [PATCH] Update CCMeshVertexIndexData.cpp [skip ci] --- core/3d/CCMeshVertexIndexData.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/3d/CCMeshVertexIndexData.cpp b/core/3d/CCMeshVertexIndexData.cpp index 3c3c280237..6323544eca 100644 --- a/core/3d/CCMeshVertexIndexData.cpp +++ b/core/3d/CCMeshVertexIndexData.cpp @@ -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);