mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 18:05:35 +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:
@@ -8,6 +8,6 @@ import (
|
||||
"gioui.org/app/internal/egl"
|
||||
)
|
||||
|
||||
func newContext() (context, error) {
|
||||
func newGLContext() (glContext, error) {
|
||||
return egl.NewContext(egl.EGL_DEFAULT_DISPLAY)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user