mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 17:35:36 +00:00
gpu/headless: remove useless headless_gl.go abstraction
There is no longer any shared code between OpenGL backends (unlike EGL backends). Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -14,7 +14,7 @@ type jsContext struct {
|
||||
ctx js.Value
|
||||
}
|
||||
|
||||
func newGLContext() (context, error) {
|
||||
func newContext() (context, error) {
|
||||
doc := js.Global().Get("document")
|
||||
cnv := doc.Call("createElement", "canvas")
|
||||
ctx := cnv.Call("getContext", "webgl2")
|
||||
|
||||
Reference in New Issue
Block a user