mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
internal/ui: bug fix: screenshot didn't include antialias renderings
This commit is contained in:
parent
c34c072efa
commit
422de70d59
@ -192,6 +192,7 @@ func (i *Image) ReadPixels(pixels []byte, x, y, width, height int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (i *Image) DumpScreenshot(name string, blackbg bool) (string, error) {
|
func (i *Image) DumpScreenshot(name string, blackbg bool) (string, error) {
|
||||||
|
i.flushBufferIfNeeded()
|
||||||
return theUI.dumpScreenshot(i.mipmap, name, blackbg)
|
return theUI.dumpScreenshot(i.mipmap, name, blackbg)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user