diff --git a/app/os_wayland.go b/app/os_wayland.go index c54fd3a0..cff157ea 100644 --- a/app/os_wayland.go +++ b/app/os_wayland.go @@ -1731,14 +1731,14 @@ func (w *window) EditorStateChanged(old, new editorState) {} func (w *window) NewContext() (context, error) { var firstErr error - if f := newWaylandVulkanContext; f != nil { + if f := newWaylandEGLContext; f != nil { c, err := f(w) if err == nil { return c, nil } firstErr = err } - if f := newWaylandEGLContext; f != nil { + if f := newWaylandVulkanContext; f != nil { c, err := f(w) if err == nil { return c, nil diff --git a/gpu/headless/headless_egl.go b/gpu/headless/headless_egl.go index 886254f8..035ba264 100644 --- a/gpu/headless/headless_egl.go +++ b/gpu/headless/headless_egl.go @@ -10,7 +10,7 @@ import ( ) func init() { - newContextFallback = func() (context, error) { + newContextPrimary = func() (context, error) { return egl.NewContext(egl.EGL_DEFAULT_DISPLAY) } } diff --git a/gpu/headless/headless_vulkan.go b/gpu/headless/headless_vulkan.go index 2b9413a3..18d5dfb6 100644 --- a/gpu/headless/headless_vulkan.go +++ b/gpu/headless/headless_vulkan.go @@ -21,7 +21,7 @@ type vkContext struct { } func init() { - newContextPrimary = newVulkanContext + newContextFallback = newVulkanContext } func newVulkanContext() (context, error) {