mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
internal/graphicsdriver/meta: rename function
This commit is contained in:
parent
cc4e2f08be
commit
6f3c6d6c1b
@ -596,7 +596,7 @@ func (g *Graphics) Initialize() error {
|
||||
g.dsss = map[stencilMode]mtl.DepthStencilState{}
|
||||
}
|
||||
|
||||
if err := g.view.reset(); err != nil {
|
||||
if err := g.view.initialize(); err != nil {
|
||||
return err
|
||||
}
|
||||
if g.transparent {
|
||||
|
@ -75,7 +75,7 @@ func (v *view) colorPixelFormat() mtl.PixelFormat {
|
||||
return v.ml.PixelFormat()
|
||||
}
|
||||
|
||||
func (v *view) reset() error {
|
||||
func (v *view) initialize() error {
|
||||
var err error
|
||||
v.device, err = mtl.CreateSystemDefaultDevice()
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user