mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-12 22:17: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 {
|
if c.offscreen != nil {
|
||||||
c.offscreen.Dispose()
|
c.offscreen.Dispose()
|
||||||
}
|
}
|
||||||
|
if c.offscreen2 != nil {
|
||||||
|
c.offscreen2.Dispose()
|
||||||
|
}
|
||||||
offscreen, err := newVolatileImage(screenWidth, screenHeight, FilterNearest)
|
offscreen, err := newVolatileImage(screenWidth, screenHeight, FilterNearest)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user