Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
GengineJS committed Dec 18, 2024
1 parent 1a1a3dd commit e7238bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions cocos/game/director.ts
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,7 @@ export class Director extends EventTarget {
}

/**
* @engineInternal
* @en Build custom render pipeline
* @zh 构建自定义渲染管线
*/
Expand Down
3 changes: 3 additions & 0 deletions native/cocos/renderer/pipeline/custom/NativePipeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1319,6 +1319,9 @@ void buildRenderPipeline() {
if(global->getProperty("jsb", &jsbVal) && jsbVal.isObject()) {
jsbVal.toObject()->getProperty("buildRenderPipeline", &buildRPVal);
}
se::ScriptEngine::getInstance()->addBeforeCleanupHook([]() {
buildRPVal.setUndefined();
});
}
se::ValueArray args;
buildRPVal.toObject()->call(args, nullptr);
Expand Down

0 comments on commit e7238bc

Please sign in to comment.