mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
graphics: Bug fix: dispose offscreen2
This commit is contained in:
parent
b2ed6ef027
commit
823834c013
@ -43,6 +43,9 @@ func (c *graphicsContext) SetSize(screenWidth, screenHeight int, screenScale flo
|
||||
if c.offscreen != nil {
|
||||
c.offscreen.Dispose()
|
||||
}
|
||||
if c.offscreen2 != nil {
|
||||
c.offscreen2.Dispose()
|
||||
}
|
||||
offscreen, err := newVolatileImage(screenWidth, screenHeight, FilterNearest)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user