Skip to content

Commit

Permalink
ia new bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiaNing committed Jun 6, 2022
1 parent e36739e commit cce80d1
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions native/cocos/2d/renderer/UIMeshBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,12 @@ gfx::InputAssembler* UIMeshBuffer::createNewIA(gfx::Device* device) {
_iaInfo.attributes = _attributes;
_iaInfo.vertexBuffers.emplace_back(vertexBuffer);
_iaInfo.indexBuffer = indexBuffer;

auto* ia = device->createInputAssembler(_iaInfo);
_iaPool.emplace_back(ia);

return ia;
}
return _iaPool.back();
auto* ia = device->createInputAssembler(_iaInfo);
_iaPool.emplace_back(ia);

return ia;
// return _iaPool.back();
}

void UIMeshBuffer::syncSharedBufferToNative(index_t* buffer) {
Expand Down

0 comments on commit cce80d1

Please sign in to comment.