Skip to content

Commit

Permalink
Fix handling of getRenderTarget when passing in a canvas
Browse files Browse the repository at this point in the history
  • Loading branch information
ShukantPal committed May 4, 2024
1 parent 78824e4 commit d754c70
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ export class RenderTargetSystem<RENDER_TARGET extends GlRenderTarget | GpuRender

if (CanvasSource.test(renderSurface))
{
renderSurface = getCanvasTexture(renderSurface as ICanvas);
renderSurface = getCanvasTexture(renderSurface as ICanvas).source;
}

if (renderSurface instanceof RenderTarget)
Expand Down

0 comments on commit d754c70

Please sign in to comment.