M app/os_wayland.go => app/os_wayland.go +2 -2
@@ 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
M gpu/headless/headless_egl.go => gpu/headless/headless_egl.go +1 -1
@@ 10,7 10,7 @@ import (
)
func init() {
- newContextFallback = func() (context, error) {
+ newContextPrimary = func() (context, error) {
return egl.NewContext(egl.EGL_DEFAULT_DISPLAY)
}
}
M gpu/headless/headless_vulkan.go => gpu/headless/headless_vulkan.go +1 -1
@@ 21,7 21,7 @@ type vkContext struct {
}
func init() {
- newContextPrimary = newVulkanContext
+ newContextFallback = newVulkanContext
}
func newVulkanContext() (context, error) {