Files
gio/app/headless/headless_gl.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

8 lines
143 B
Go

// SPDX-License-Identifier: Unlicense OR MIT
package headless
func newContext(width, height int) (backend, error) {
return newGLContext()
}