mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 09:55:40 +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:
@@ -22,7 +22,7 @@ type nsContext struct {
|
||||
prepared bool
|
||||
}
|
||||
|
||||
func newContext() (context, error) {
|
||||
func newGLContext() (glContext, error) {
|
||||
ctx := C.gio_headless_newContext()
|
||||
return &nsContext{ctx: ctx, c: new(glimpl.Functions)}, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user