mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 17:35:36 +00:00
app/headless: remove OpenGL assumptions
To prepare package headless for multiple backends, refactor the common headless driver to no longer assume an OpenGL context. Instead, introduce a headless backend type and the OpenGL implementation, glBackend. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -16,7 +16,7 @@ type jsContext struct {
|
||||
f *glimpl.Functions
|
||||
}
|
||||
|
||||
func newContext() (*jsContext, error) {
|
||||
func newGLContext() (glContext, error) {
|
||||
version := 2
|
||||
doc := js.Global().Get("document")
|
||||
cnv := doc.Call("createElement", "canvas")
|
||||
|
||||
Reference in New Issue
Block a user