github.com/gop9/olt@v0.0.0-20200202132135-d956aad50b08/gio/app/headless/headless_egl.go (about) 1 // SPDX-License-Identifier: Unlicense OR MIT 2 3 // +build linux freebsd windows 4 5 package headless 6 7 import ( 8 "github.com/gop9/olt/gio/app/internal/egl" 9 ) 10 11 func newContext() (context, error) { 12 return egl.NewContext(egl.EGL_DEFAULT_DISPLAY) 13 }