mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48:54 +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{}
|
g.dsss = map[stencilMode]mtl.DepthStencilState{}
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := g.view.reset(); err != nil {
|
if err := g.view.initialize(); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if g.transparent {
|
if g.transparent {
|
||||||
|
@ -75,7 +75,7 @@ func (v *view) colorPixelFormat() mtl.PixelFormat {
|
|||||||
return v.ml.PixelFormat()
|
return v.ml.PixelFormat()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (v *view) reset() error {
|
func (v *view) initialize() error {
|
||||||
var err error
|
var err error
|
||||||
v.device, err = mtl.CreateSystemDefaultDevice()
|
v.device, err = mtl.CreateSystemDefaultDevice()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user