mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +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}
|
||||
c.defaultRenderTarget = &Image{framebuffer: f, texture: nil}
|
||||
c.defaultRenderTarget.Clear()
|
||||
c.screen = screen
|
||||
c.screenScale = screenScale
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user