mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
3d6cafa94d
Signed-off-by: Egon Elbre <egonelbre@gmail.com>
16 lines
257 B
Go
16 lines
257 B
Go
// SPDX-License-Identifier: Unlicense OR MIT
|
|
|
|
//go:build linux || freebsd || openbsd
|
|
|
|
package headless
|
|
|
|
import (
|
|
"gioui.org/internal/egl"
|
|
)
|
|
|
|
func init() {
|
|
newContextPrimary = func() (context, error) {
|
|
return egl.NewContext(egl.EGL_DEFAULT_DISPLAY)
|
|
}
|
|
}
|