778cf4334c335bc107ccbdc26d39d874e02434e3 — Elias Naur 2 months ago 7c197cc debug-issue-22-2
debug #22 attempt #2
1 files changed, 10 insertions(+), 0 deletions(-)

M ui/app/egl.go
M ui/app/egl.go => ui/app/egl.go +10 -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,15 @@ 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_BLUE_SIZE, 1,
+ 		_EGL_GREEN_SIZE, 1,
+ 		_EGL_RED_SIZE, 1,
+ 		_EGL_ALPHA_SIZE, 1,
+ 		_EGL_NONE, _EGL_NONE,
+ 	}
  	eglCfg, ret := eglChooseConfig(eglDisp, attribs)
  	if !ret {
  		return nil, fmt.Errorf("eglChooseConfig failed: 0x%x", eglGetError())