mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 11:48:55 +01:00
Revert "internal/ui: return errors when getting a graphics driver fails"
This reverts commit d4e31aedd6
.
Reason: compile error with -tags=nintendosdk
This commit is contained in:
parent
d4e31aedd6
commit
bd10f19567
@ -108,11 +108,11 @@ func (g *graphicsDriverCreatorImpl) newOpenGL() (graphicsdriver.Graphics, error)
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (*graphicsDriverCreatorImpl) newDirectX() (graphicsdriver.Graphics, error) {
|
func (*graphicsDriverCreatorImpl) newDirectX() (graphicsdriver.Graphics, error) {
|
||||||
return nil, fmt.Errorf("ui: DirectX is not supported in this environment")
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (*graphicsDriverCreatorImpl) newMetal() (graphicsdriver.Graphics, error) {
|
func (*graphicsDriverCreatorImpl) newMetal() (graphicsdriver.Graphics, error) {
|
||||||
return nil, fmt.Errorf("ui: Metal is not supported in this environment")
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func deviceScaleFactorImpl() float64 {
|
func deviceScaleFactorImpl() float64 {
|
||||||
|
@ -185,7 +185,7 @@ func (*graphicsDriverCreatorImpl) newOpenGL() (graphicsdriver.Graphics, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (*graphicsDriverCreatorImpl) newDirectX() (graphicsdriver.Graphics, error) {
|
func (*graphicsDriverCreatorImpl) newDirectX() (graphicsdriver.Graphics, error) {
|
||||||
return nil, fmt.Errorf("ui: DirectX is not supported in this environment")
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (*graphicsDriverCreatorImpl) newMetal() (graphicsdriver.Graphics, error) {
|
func (*graphicsDriverCreatorImpl) newMetal() (graphicsdriver.Graphics, error) {
|
||||||
|
@ -55,7 +55,7 @@ func (g *graphicsDriverCreatorImpl) newOpenGL() (graphicsdriver.Graphics, error)
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (*graphicsDriverCreatorImpl) newDirectX() (graphicsdriver.Graphics, error) {
|
func (*graphicsDriverCreatorImpl) newDirectX() (graphicsdriver.Graphics, error) {
|
||||||
return nil, fmt.Errorf("ui: DirectX is not supported in this environment")
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (g *graphicsDriverCreatorImpl) newMetal() (graphicsdriver.Graphics, error) {
|
func (g *graphicsDriverCreatorImpl) newMetal() (graphicsdriver.Graphics, error) {
|
||||||
|
@ -47,11 +47,11 @@ func (*graphicsDriverCreatorImpl) newOpenGL() (graphicsdriver.Graphics, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (*graphicsDriverCreatorImpl) newDirectX() (graphicsdriver.Graphics, error) {
|
func (*graphicsDriverCreatorImpl) newDirectX() (graphicsdriver.Graphics, error) {
|
||||||
return nil, fmt.Errorf("ui: DirectX is not supported in this environment")
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (*graphicsDriverCreatorImpl) newMetal() (graphicsdriver.Graphics, error) {
|
func (*graphicsDriverCreatorImpl) newMetal() (graphicsdriver.Graphics, error) {
|
||||||
return nil, fmt.Errorf("ui: Metal is not supported in this environment")
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// glfwMonitorSizeInGLFWPixels must be called from the main thread.
|
// glfwMonitorSizeInGLFWPixels must be called from the main thread.
|
||||||
|
@ -46,11 +46,11 @@ func (*graphicsDriverCreatorImpl) newOpenGL() (graphicsdriver.Graphics, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (*graphicsDriverCreatorImpl) newDirectX() (graphicsdriver.Graphics, error) {
|
func (*graphicsDriverCreatorImpl) newDirectX() (graphicsdriver.Graphics, error) {
|
||||||
return nil, fmt.Errorf("ui: DirectX is not supported in this environment")
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (*graphicsDriverCreatorImpl) newMetal() (graphicsdriver.Graphics, error) {
|
func (*graphicsDriverCreatorImpl) newMetal() (graphicsdriver.Graphics, error) {
|
||||||
return nil, fmt.Errorf("ui: Metal is not supported in this environment")
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
const deviceScaleFactor = 1
|
const deviceScaleFactor = 1
|
||||||
|
@ -86,7 +86,7 @@ func (g *graphicsDriverCreatorImpl) newDirectX() (graphicsdriver.Graphics, error
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (*graphicsDriverCreatorImpl) newMetal() (graphicsdriver.Graphics, error) {
|
func (*graphicsDriverCreatorImpl) newMetal() (graphicsdriver.Graphics, error) {
|
||||||
return nil, fmt.Errorf("ui: Metal is not supported in this environment")
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// glfwMonitorSizeInGLFWPixels must be called from the main thread.
|
// glfwMonitorSizeInGLFWPixels must be called from the main thread.
|
||||||
|
Loading…
Reference in New Issue
Block a user