From 4cf5ba739a5f54ac6583409d8c6ceff59b6a420f Mon Sep 17 00:00:00 2001 From: ienaga Date: Sat, 4 Apr 2026 17:49:45 +0900 Subject: [PATCH] =?UTF-8?q?#260=20=E5=9E=8B=E3=82=A8=E3=83=A9=E3=83=BC?= =?UTF-8?q?=E3=82=92=E8=A7=A3=E6=B6=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/webgpu/src/Context.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/webgpu/src/Context.ts b/packages/webgpu/src/Context.ts index 5c47fa79..20927001 100644 --- a/packages/webgpu/src/Context.ts +++ b/packages/webgpu/src/Context.ts @@ -1204,7 +1204,7 @@ export class Context vertex_count, bind_group, uniform_offset, - this.currentRenderTarget, + this.currentRenderTarget !== null, use_stencil_pipeline, clipLevel ); @@ -1299,7 +1299,7 @@ export class Context const useStencilPipeline = useMainStencil; // アトラスへの描画かどうか - const useAtlasTarget = this.currentRenderTarget; + const useAtlasTarget = this.currentRenderTarget !== null; const lutTexture = contextGradientFillUseCase( this.device, @@ -1384,7 +1384,7 @@ export class Context smooth, this.viewportWidth, this.viewportHeight, - this.currentRenderTarget, + this.currentRenderTarget !== null, !!useStencilPipeline, clipLevel ); @@ -1451,7 +1451,7 @@ export class Context focal, this.viewportWidth, this.viewportHeight, - this.currentRenderTarget, + this.currentRenderTarget !== null, useStencilPipeline ); @@ -1517,7 +1517,7 @@ export class Context smooth, this.viewportWidth, this.viewportHeight, - this.currentRenderTarget, + this.currentRenderTarget !== null, useStencilPipeline );