mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
graphics: Clear the default render target just after initializing
This commit is contained in:
parent
dc933b88f8
commit
deabfa5e15
@ -78,6 +78,7 @@ func (c *graphicsContext) setSize(screenWidth, screenHeight, screenScale int) er
|
|||||||
}
|
}
|
||||||
screen := &Image{framebuffer: screenF, texture: texture}
|
screen := &Image{framebuffer: screenF, texture: texture}
|
||||||
c.defaultRenderTarget = &Image{framebuffer: f, texture: nil}
|
c.defaultRenderTarget = &Image{framebuffer: f, texture: nil}
|
||||||
|
c.defaultRenderTarget.Clear()
|
||||||
c.screen = screen
|
c.screen = screen
|
||||||
c.screenScale = screenScale
|
c.screenScale = screenScale
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user