diff --git a/README.md b/README.md index 74fbc34c..b0f30ade 100644 --- a/README.md +++ b/README.md @@ -132,6 +132,7 @@ information on what to include when reporting a bug. - [Cocoa] Bugfix: Running in AppSandbox would emit warnings (#816,#882) - [Cocoa] Bugfix: Windows created after the first were not cascaded (#195) - [EGL] Added support for `EGL_KHR_get_all_proc_addresses` (#871) +- [EGL] Bugfix: The test for `EGL_RGB_BUFFER` was invalid ## Contact diff --git a/src/egl_context.c b/src/egl_context.c index 9640cc6f..368cba96 100644 --- a/src/egl_context.c +++ b/src/egl_context.c @@ -113,7 +113,7 @@ static GLFWbool chooseEGLConfig(const _GLFWctxconfig* ctxconfig, _GLFWfbconfig* u = usableConfigs + usableCount; // Only consider RGB(A) EGLConfigs - if (!(getEGLConfigAttrib(n, EGL_COLOR_BUFFER_TYPE) & EGL_RGB_BUFFER)) + if (getEGLConfigAttrib(n, EGL_COLOR_BUFFER_TYPE) != EGL_RGB_BUFFER) continue; // Only consider window EGLConfigs