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