Files
gio/app/headless/headless_egl.go
T
Elias Naur f305f71b20 app/headless: re-implement Screenshot on top of Backend
The new Framebuffer.ReadPixels method is enough to implement
Window.Screenshot. Use that instead of the OpenGL-specific
implementation.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2020-02-27 20:34:22 +01:00

14 lines
236 B
Go

// SPDX-License-Identifier: Unlicense OR MIT
// +build linux freebsd windows openbsd
package headless
import (
"gioui.org/app/internal/egl"
)
func newGLContext() (backend, error) {
return egl.NewContext(egl.EGL_DEFAULT_DISPLAY)
}