diff --git a/pixelgl/canvas.go b/pixelgl/canvas.go index 5a57c96..656e4d7 100644 --- a/pixelgl/canvas.go +++ b/pixelgl/canvas.go @@ -86,6 +86,8 @@ func (c *Canvas) MakePicture(p pixel.Picture) pixel.TargetPicture { tp.dst = c return tp } + + // Canvas special case if canvas, ok := p.(*Canvas); ok { return &canvasCanvasPicture{ src: canvas,