fix pass instance init

This commit is contained in:
Yun Hsiao Wu
2020-06-04 10:19:37 +08:00
parent c1b3382e06
commit 033226ec74
@@ -46,7 +46,9 @@ export class PassInstance extends Pass {
super(parent.root);
this._parent = parent;
this._owner = owner;
this.beginChangeStatesSilently();
this._doInit(this._parent, true); // defines may change now
this.endChangeStatesSilently();
for (const u of this._shaderInfo.blocks) {
if (isBuiltinBinding(u.binding)) { continue; }
const block = this._blocks[u.binding];