mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
graphics: Remove redundant disposing images
This commit is contained in:
parent
c720c8e1cb
commit
9e9a05ee54
@ -92,7 +92,7 @@ func (c *graphicsContext) Update(afterFrameUpdate func()) error {
|
|||||||
}
|
}
|
||||||
for i := 0; i < updateCount; i++ {
|
for i := 0; i < updateCount; i++ {
|
||||||
c.offscreen.fill(0, 0, 0, 0)
|
c.offscreen.fill(0, 0, 0, 0)
|
||||||
c.offscreen.disposeMipmaps()
|
// Mipmap images should be disposed by fill.
|
||||||
|
|
||||||
setDrawingSkipped(i < updateCount-1)
|
setDrawingSkipped(i < updateCount-1)
|
||||||
if err := hooks.RunBeforeUpdateHooks(); err != nil {
|
if err := hooks.RunBeforeUpdateHooks(); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user