Fix CompositorEffect not setting post-transparent callback on init

This commit is contained in:
Luo Zhihao 2025-09-04 19:15:16 +08:00
parent 6c9aa4c7d3
commit d9d796618d
No known key found for this signature in database
GPG key ID: E10A25B618BD1E9B

View file

@ -186,7 +186,7 @@ CompositorEffect::CompositorEffect() {
RenderingServer *rs = RenderingServer::get_singleton();
if (rs != nullptr) {
rid = rs->compositor_effect_create();
rs->compositor_effect_set_callback(rid, RenderingServer::CompositorEffectCallbackType(effect_callback_type), Callable(this, "_render_callback"));
rs->compositor_effect_set_callback(rid, RenderingServer::CompositorEffectCallbackType(effect_callback_type), callable_mp(this, &CompositorEffect::_call_render_callback));
}
}