fix an issue that GL/Program doesn't emit 'done' output

This commit is contained in:
2022-11-14 04:21:30 +09:00
parent 646863170e
commit e87c746e65

View File

@@ -974,6 +974,10 @@ struct Program {
if (status != GL_FRAMEBUFFER_COMPLETE) {
p.log->Warn("framebuffer is broken");
}
p.la->env().ExecSub(p.la, [p]() {
p.in.sender->Handle("done", nf7::Value::Pulse {}, p.la);
});
}).Catch<nf7::Exception>([p](auto& e) {
p.log->Error(e);
});