forked from joejulian/gio
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)
|
|
}
|
|
}
|