Skip to content

Commit

Permalink
fix recursive call (#16245)
Browse files Browse the repository at this point in the history
  • Loading branch information
hana-alice authored Sep 12, 2023
1 parent 2788ed6 commit cc2a1a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions native/cocos/renderer/gfx-agent/DescriptorSetAgent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ void DescriptorSetAgent::forceUpdate() {
}

void DescriptorSetAgent::bindBuffer(uint32_t binding, Buffer *buffer, uint32_t index, AccessFlags flags) {
DescriptorSet::bindBuffer(binding, buffer, index);
DescriptorSet::bindBuffer(binding, buffer, index, flags);

ENQUEUE_MESSAGE_5(
DeviceAgent::getInstance()->getMessageQueue(),
Expand All @@ -110,7 +110,7 @@ void DescriptorSetAgent::bindBuffer(uint32_t binding, Buffer *buffer, uint32_t i
index, index,
flags, flags,
{
actor->bindBuffer(binding, buffer, index);
actor->bindBuffer(binding, buffer, index, flags);
});
}

Expand Down

0 comments on commit cc2a1a8

Please sign in to comment.