internal/ui: bug fix: screenshot didn't include antialias renderings

This commit is contained in:
Hajime Hoshi 2022-10-22 14:19:24 +09:00
parent c34c072efa
commit 422de70d59

View File

@ -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)
} }