github.com/Seikaijyu/gio@v0.0.1/gpu/headless/headless_egl.go (about) 1 // SPDX-License-Identifier: Unlicense OR MIT 2 3 //go:build linux || freebsd || openbsd 4 // +build linux freebsd openbsd 5 6 package headless 7 8 import ( 9 "github.com/Seikaijyu/gio/internal/egl" 10 ) 11 12 func init() { 13 newContextPrimary = func() (context, error) { 14 return egl.NewContext(egl.EGL_DEFAULT_DISPLAY) 15 } 16 }