|
@@ -213,12 +213,12 @@ export class MultiRenderTarget extends RenderTargetTexture {
|
|
}
|
|
}
|
|
|
|
|
|
if (this.samples !== 1) {
|
|
if (this.samples !== 1) {
|
|
- this._getEngine()!.updateMultipleRenderTargetTextureSampleCount(this._internalTextures, this.samples, this._drawOnlyOnFirstAttachmentByDefault);
|
|
|
|
|
|
+ this._getEngine()!.updateMultipleRenderTargetTextureSampleCount(this._internalTextures, this.samples, !this._drawOnlyOnFirstAttachmentByDefault);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
private _createInternalTextures(): void {
|
|
private _createInternalTextures(): void {
|
|
- this._internalTextures = this._getEngine()!.createMultipleRenderTarget(this._size, this._multiRenderTargetOptions, this._drawOnlyOnFirstAttachmentByDefault);
|
|
|
|
|
|
+ this._internalTextures = this._getEngine()!.createMultipleRenderTarget(this._size, this._multiRenderTargetOptions, !this._drawOnlyOnFirstAttachmentByDefault);
|
|
|
|
|
|
// Keeps references to frame buffer and stencil/depth buffer
|
|
// Keeps references to frame buffer and stencil/depth buffer
|
|
this._texture = this._internalTextures[0];
|
|
this._texture = this._internalTextures[0];
|