Skip to content

Always return an error from eglMakeCurrent if the EGLDispaly is invalid

Created by: kbrenneman

This is a fix to make eglMakeCurrent check the EGLDisplay handle unconditionally. Right now, it ignores the display if the context is NULL, since it doesn't need a display in that case. But, the EGL spec says that it should always fail with the error EGL_BAD_DISPLAY if the display is invalid.

Merge request reports