From 3bc2239a3b554539a5a531964770e033c788ac98 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Wed, 27 Jul 2016 12:13:54 +0900 Subject: [PATCH] pixels: Bug fix: Update image member when creating a new image --- internal/pixels/pixels.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/pixels/pixels.go b/internal/pixels/pixels.go index c3b3f1a57..0c71729cc 100644 --- a/internal/pixels/pixels.go +++ b/internal/pixels/pixels.go @@ -177,6 +177,7 @@ func (p *Pixels) CreateImage(context *opengl.Context, width, height int, filter return nil, err } } + p.image = gimg p.basePixels, err = gimg.Pixels(context) if err != nil { return nil, err