|
@@ -2958,7 +2958,7 @@ export class WebGPUEngine extends Engine {
|
|
* Restores the WebGPU state to only draw on the main color attachment
|
|
* Restores the WebGPU state to only draw on the main color attachment
|
|
*/
|
|
*/
|
|
public restoreSingleAttachment(): void {
|
|
public restoreSingleAttachment(): void {
|
|
- this.bindAttachments([]);
|
|
|
|
|
|
+ // nothing to do, this is done automatically in the unBindFramebuffer function
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -2985,7 +2985,7 @@ export class WebGPUEngine extends Engine {
|
|
* @param attachments index of attachments
|
|
* @param attachments index of attachments
|
|
*/
|
|
*/
|
|
public bindAttachments(attachments: number[]): void {
|
|
public bindAttachments(attachments: number[]): void {
|
|
- this._mrtAttachments = attachments;
|
|
|
|
|
|
+ // nothing to do, this is done automatically in the _startRenderTargetRenderPass function
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -3095,6 +3095,7 @@ export class WebGPUEngine extends Engine {
|
|
|
|
|
|
this._currentRenderTarget = null;
|
|
this._currentRenderTarget = null;
|
|
|
|
|
|
|
|
+ this._mrtAttachments = [];
|
|
this._currentRenderPass = this._mainRenderPassWrapper.renderPass;
|
|
this._currentRenderPass = this._mainRenderPassWrapper.renderPass;
|
|
this._setDepthTextureFormat(this._mainRenderPassWrapper);
|
|
this._setDepthTextureFormat(this._mainRenderPassWrapper);
|
|
this._setColorFormat(this._mainRenderPassWrapper);
|
|
this._setColorFormat(this._mainRenderPassWrapper);
|