fix an issue that hot reloading doesn't occur after once GLSL compile failed

This commit is contained in:
falsycat 2022-11-23 14:03:17 +09:00
parent 93312c6d04
commit 3346e1f9ba

View File

@ -150,7 +150,7 @@ class ObjBase : public nf7::FileBase,
ResourcePromise pro {ctx};
mtx_.AcquireLock(ctx, ex).ThenIf([this, ctx, pro](auto& k) mutable {
if (!fu_) {
if (!fu_ || fu_->error()) {
watch_ = std::make_shared<nf7::GenericWatcher>(env());
const auto handler = [self = life_.ref()](auto&) {