c7993ae05d6432c7587549c174ec5e5cf1f6bc31 — Elias Naur 13 days ago 7c197cc debug-issue-22
debug #22
1 files changed, 6 insertions(+), 0 deletions(-)

M ui/app/egl.go
M ui/app/egl.go => ui/app/egl.go +6 -0
@@ 202,6 202,7 @@ // sRGB framebuffer support on EGL 1.5 or if EGL_KHR_gl_colorspace is supported.
  	exts := strings.Split(eglQueryString(eglDisp, _EGL_EXTENSIONS), " ")
  	srgb := major > 1 || minor >= 5 || hasExtension(exts, "EGL_KHR_gl_colorspace")
+ 	srgb = false
  	attribs := []_EGLint{
  		_EGL_RENDERABLE_TYPE, _EGL_OPENGL_ES2_BIT,
  		_EGL_SURFACE_TYPE, _EGL_WINDOW_BIT,


@@ 220,6 221,11 @@ attribs = append(attribs, _EGL_DEPTH_SIZE, 16)
  	}
  	attribs = append(attribs, _EGL_NONE)
+ 	attribs = []_EGLint{
+ 		_EGL_RENDERABLE_TYPE, _EGL_OPENGL_ES2_BIT,
+ 		_EGL_SURFACE_TYPE, _EGL_WINDOW_BIT,
+ 		_EGL_NONE, _EGL_NONE,
+ 	}
  	eglCfg, ret := eglChooseConfig(eglDisp, attribs)
  	if !ret {
  		return nil, fmt.Errorf("eglChooseConfig failed: 0x%x", eglGetError())