560591955538a49a352d36e59780928be3889e73 — Elias Naur 2 months ago 8c12137
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 <mail@eliasnaur.com>
1 files changed, 1 insertions(+), 1 deletions(-)

M ui/app/egl_windows.go
M ui/app/egl_windows.go => ui/app/egl_windows.go +1 -1
@@ 63,7 63,7 @@ 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 {