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:
Elias Naur
2021-08-13 16:05:51 +02:00
parent 8d8bc19c23
commit 6c3711d95a
4 changed files with 5 additions and 15 deletions
+1 -1
View File
@@ -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")