internal/graphicsdriver/meta: rename function

This commit is contained in:
Hajime Hoshi 2022-02-11 22:47:13 +09:00
parent cc4e2f08be
commit 6f3c6d6c1b
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

@ -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 {