From 6f3c6d6c1bc81f5ea0ca6667471b94aff3fbf21a Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Fri, 11 Feb 2022 22:47:13 +0900 Subject: [PATCH] internal/graphicsdriver/meta: rename function --- internal/graphicsdriver/metal/graphics_darwin.go | 2 +- internal/graphicsdriver/metal/view_darwin.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/graphicsdriver/metal/graphics_darwin.go b/internal/graphicsdriver/metal/graphics_darwin.go index fdd2060dd..31da63021 100644 --- a/internal/graphicsdriver/metal/graphics_darwin.go +++ b/internal/graphicsdriver/metal/graphics_darwin.go @@ -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 { diff --git a/internal/graphicsdriver/metal/view_darwin.go b/internal/graphicsdriver/metal/view_darwin.go index 30c7de37f..daf212793 100644 --- a/internal/graphicsdriver/metal/view_darwin.go +++ b/internal/graphicsdriver/metal/view_darwin.go @@ -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 {