gioui.org@v0.6.1-0.20240506124620-7a9ce51988ce/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 "gioui.org/internal/egl" 10 ) 11 12 func init() { 13 newContextPrimary = func() (context, error) { 14 return egl.NewContext(egl.EGL_DEFAULT_DISPLAY) 15 } 16 }