-
Notifications
You must be signed in to change notification settings - Fork 15
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good but please revert the changes to the frame graph. That is not a good solution.we should use a base class but right now the easiest solution would be to change the stored data type from void* to shared/unique_pointer which would call the destructor I believe if you initialize it from the correct type. still return Object* instead of shared to keep the changes to a minimum.
src/frame_graph/frame_graph.hpp
Outdated
{ | ||
delete data; | ||
free(data); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prefer delete over free.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay maybe.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll change it to std::shared_ptrlike suggested
…ean up file watcher. Clean up registries. Clean up temporary shapes.
not mergable |
… and RTAO shader registries
#387