internal/glfwwin: return an error at initWGL on Xbox

Updates #1162
This commit is contained in:
Hajime Hoshi 2022-05-29 17:37:02 +09:00
parent 59e6d4578b
commit 7f46938ff7

View File

@ -329,6 +329,10 @@ func destroyContextWGL(window *Window) error {
}
func initWGL() error {
if isXbox() {
return fmt.Errorf("glfwwin: WGL is not available in Xbox")
}
if _glfw.wgl.inited {
return nil
}