forked from joejulian/gio
6c3711d95a
There is no longer any shared code between OpenGL backends (unlike EGL backends). Signed-off-by: Elias Naur <mail@eliasnaur.com>
15 lines
261 B
Go
15 lines
261 B
Go
// SPDX-License-Identifier: Unlicense OR MIT
|
|
|
|
//go:build linux || freebsd || openbsd
|
|
// +build linux freebsd openbsd
|
|
|
|
package headless
|
|
|
|
import (
|
|
"gioui.org/internal/egl"
|
|
)
|
|
|
|
func newContext() (context, error) {
|
|
return egl.NewContext(egl.EGL_DEFAULT_DISPLAY)
|
|
}
|