From 7ad60e08787b2a09fad65657b52c50a6ad7a3caf Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Mon, 2 Sep 2019 15:17:29 +0200 Subject: [PATCH] ui/app: print sRGB flag for eglCreateWindowSurface failure For gio#35 Signed-off-by: Elias Naur --- ui/app/egl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/app/egl.go b/ui/app/egl.go index 98a412ec..ee07993e 100644 --- a/ui/app/egl.go +++ b/ui/app/egl.go @@ -257,7 +257,7 @@ func createSurfaceAndMakeCurrent(eglCtx *eglContext, win _EGLNativeWindowType) ( 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)