mirror of https://github.com/axmolengine/axmol.git
Update CCMeshVertexIndexData.cpp [skip ci]
This commit is contained in:
parent
ad451adb4b
commit
4f1212e655
|
@ -134,7 +134,7 @@ MeshVertexData* MeshVertexData::create(const MeshData& meshdata, CustomCommand::
|
||||||
{
|
{
|
||||||
auto& indices = meshdata.subMeshIndices[i];
|
auto& indices = meshdata.subMeshIndices[i];
|
||||||
auto indexBuffer = backend::Device::getInstance()->newBuffer(
|
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();
|
indexBuffer->autorelease();
|
||||||
#if CC_ENABLE_CACHE_TEXTURE_DATA
|
#if CC_ENABLE_CACHE_TEXTURE_DATA
|
||||||
indexBuffer->usingDefaultStoredData(false);
|
indexBuffer->usingDefaultStoredData(false);
|
||||||
|
|
Loading…
Reference in New Issue