github.com/cybriq/giocore@v0.0.7-0.20210703034601-cfb9cb5f3900/gpu/headless/headless_egl.go (about) 1 // SPDX-License-Identifier: Unlicense OR MIT 2 3 // +build linux freebsd windows openbsd 4 5 package headless 6 7 import ( 8 "github.com/cybriq/giocore/internal/egl" 9 ) 10 11 func newGLContext() (context, error) { 12 return egl.NewContext(egl.EGL_DEFAULT_DISPLAY) 13 }