5.3.9. Incorrect error code returned instead
of EGL_BAD_MATCH
Sometimes, instead of EGL_BAD_MATCH, EGL
returns an incorrect error code. This happens because GLX does not
have an error code corresponding to EGL_BAD_MATCH and
EGL is not always able to detect the real cause of the error.