From 560591955538a49a352d36e59780928be3889e73 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Mon, 12 Aug 2019 00:05:57 +0200 Subject: [PATCH] ui/app: (windows) don't fail eglChooseConfig just because no configs were found The resulting eglGetError will return a confusing EGL_SUCCESS. Signed-off-by: Elias Naur --- ui/app/egl_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/app/egl_windows.go b/ui/app/egl_windows.go index 65af3c27..0888ad66 100644 --- a/ui/app/egl_windows.go +++ b/ui/app/egl_windows.go @@ -63,7 +63,7 @@ func eglChooseConfig(disp _EGLDisplay, attribs []_EGLint) (_EGLConfig, bool) { var cfg _EGLConfig var ncfg _EGLint r, _, _ := _eglChooseConfig.Call(uintptr(disp), uintptr(unsafe.Pointer(&attribs[0])), uintptr(unsafe.Pointer(&cfg)), 1, uintptr(unsafe.Pointer(&ncfg))) - return cfg, r != 0 && ncfg > 0 + return cfg, r != 0 } func eglCreateContext(disp _EGLDisplay, cfg _EGLConfig, shareCtx _EGLContext, attribs []_EGLint) _EGLContext {