@@ -242,7 +242,9 @@ export class PrePassRenderer {
* Restores attachments for single texture draw.
*/
public restoreAttachments() {
- this._engine.bindAttachments(this._defaultAttachments);
+ if (this.enabled) {
+ this._engine.bindAttachments(this._defaultAttachments);
+ }
}
/**