mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +01:00
pixels: Bug fix: Update image member when creating a new image
This commit is contained in:
parent
b901d2acb1
commit
3bc2239a3b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user