Files
gio/app/headless/headless_egl.go
T
Aaron Bieber fdaf891732 app: Enable building on OpenBSD
Currently the golang.org/x/sys package is missing the Pipe2 call for OpenBSD.
The call exists on OpenBSD, it just isn't exposed.

This diff was tested buy adding the Pipe2 call and setting:

   go mod edit -replace=golang.org/x/sys=/pat/to/modified/sys

Signed-off-by: Aaron Bieber <aaron@bolddaemon.com>
2020-01-24 14:32:54 +01:00

14 lines
234 B
Go

// SPDX-License-Identifier: Unlicense OR MIT
// +build linux freebsd windows openbsd
package headless
import (
"gioui.org/app/internal/egl"
)
func newContext() (context, error) {
return egl.NewContext(egl.EGL_DEFAULT_DISPLAY)
}