From e4ecafefc5397db71663c63505e948e9ea9b087d Mon Sep 17 00:00:00 2001 From: faiface Date: Tue, 7 Mar 2017 22:44:25 +0100 Subject: [PATCH] add clarifying comment --- pixelgl/canvas.go | 2 ++ 1 file changed, 2 insertions(+) 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,