mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 18:05:35 +00:00
ui/app: print sRGB flag for eglCreateWindowSurface failure
For gio#35 Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+1
-1
@@ -257,7 +257,7 @@ func createSurfaceAndMakeCurrent(eglCtx *eglContext, win _EGLNativeWindowType) (
|
|||||||
surfAttribs = append(surfAttribs, _EGL_NONE)
|
surfAttribs = append(surfAttribs, _EGL_NONE)
|
||||||
eglSurf := eglCreateWindowSurface(eglCtx.disp, eglCtx.config, win, surfAttribs)
|
eglSurf := eglCreateWindowSurface(eglCtx.disp, eglCtx.config, win, surfAttribs)
|
||||||
if eglSurf == nilEGLSurface {
|
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) {
|
if !eglMakeCurrent(eglCtx.disp, eglSurf, eglSurf, eglCtx.ctx) {
|
||||||
eglDestroySurface(eglCtx.disp, eglSurf)
|
eglDestroySurface(eglCtx.disp, eglSurf)
|
||||||
|
|||||||
Reference in New Issue
Block a user