7ad60e08787b2a09fad65657b52c50a6ad7a3caf — Elias Naur 14 days ago ef64cd7
ui/app: print sRGB flag for eglCreateWindowSurface failure

For gio#35

Signed-off-by: Elias Naur <mail@eliasnaur.com>
1 files changed, 1 insertions(+), 1 deletions(-)

M ui/app/egl.go
M ui/app/egl.go => ui/app/egl.go +1 -1
@@ 257,7 257,7 @@ surfAttribs = append(surfAttribs, _EGL_NONE)
  	eglSurf := eglCreateWindowSurface(eglCtx.disp, eglCtx.config, win, surfAttribs)
  	if eglSurf == nilEGLSurface {
- 		return nilEGLSurface, fmt.Errorf("newContext: eglCreateWindowSurface failed 0x%x", eglGetError())
+ 		return nilEGLSurface, fmt.Errorf("newContext: eglCreateWindowSurface failed 0x%x (sRGB=%v)", eglGetError(), eglCtx.srgb)
  	}
  	if !eglMakeCurrent(eglCtx.disp, eglSurf, eglSurf, eglCtx.ctx) {
  		eglDestroySurface(eglCtx.disp, eglSurf)