pixels: Bug fix: Update image member when creating a new image

This commit is contained in:
Hajime Hoshi 2016-07-27 12:13:54 +09:00
parent b901d2acb1
commit 3bc2239a3b

View File

@ -177,6 +177,7 @@ func (p *Pixels) CreateImage(context *opengl.Context, width, height int, filter
return nil, err return nil, err
} }
} }
p.image = gimg
p.basePixels, err = gimg.Pixels(context) p.basePixels, err = gimg.Pixels(context)
if err != nil { if err != nil {
return nil, err return nil, err