mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
restorable: Bug fix: volatile images are not relaiable when restoring
This commit is contained in:
parent
d6cf199956
commit
e22561c292
@ -163,7 +163,7 @@ func (i *imageImpl) DrawImage(image *Image, options *DrawImageOptions) error {
|
||||
geom := options.GeoM
|
||||
colorm := options.ColorM
|
||||
mode := opengl.CompositeMode(options.CompositeMode)
|
||||
if image.impl.pixels.IsStale() {
|
||||
if image.impl.pixels.IsStale() || image.impl.volatile {
|
||||
i.pixels.MakeStale()
|
||||
} else {
|
||||
i.pixels.AppendDrawImageHistory(image.impl.image, vertices, &geom, &colorm, mode)
|
||||
|
Loading…
Reference in New Issue
Block a user