Use raw pointer (#11804)

* Revert "use IntrusivePtr to share object (#11729)"

This reverts commit 8caec59711.

* Framebuffer uses weak reference

* make doDestroy reentency
This commit is contained in:
minggo
2022-07-04 10:20:07 +08:00
committed by GitHub
parent 98a53fc7a8
commit 02a1eb0f55
45 changed files with 119 additions and 90 deletions
@@ -42,6 +42,7 @@ FramebufferValidator::FramebufferValidator(Framebuffer *actor)
FramebufferValidator::~FramebufferValidator() {
DeviceResourceTracker<Framebuffer>::erase(this);
CC_SAFE_DELETE(_actor);
}
void FramebufferValidator::doInit(const FramebufferInfo &info) {