mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 01:45:36 +00:00
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>
This commit is contained in:
@@ -16,7 +16,7 @@ type jsContext struct {
|
||||
f *glimpl.Functions
|
||||
}
|
||||
|
||||
func newGLContext() (glContext, error) {
|
||||
func newGLContext() (backend, error) {
|
||||
version := 2
|
||||
doc := js.Global().Get("document")
|
||||
cnv := doc.Call("createElement", "canvas")
|
||||
|
||||
Reference in New Issue
Block a user