mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-04 00:45:35 +00:00
f305f71b20
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>
14 lines
236 B
Go
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)
|
|
}
|