Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0387cb6e authored by Steve Kondik's avatar Steve Kondik Committed by Gerrit Code Review
Browse files

Merge "[egl] return error code for NULL num_config output parameter" into gingerbread

parents 30ae958a ec5be46d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -839,6 +839,7 @@ EGLBoolean eglGetConfigs( EGLDisplay dpy,
{
    egl_display_t const * const dp = get_display(dpy);
    if (!dp) return setError(EGL_BAD_DISPLAY, EGL_FALSE);
    if (!num_config) return setError(EGL_BAD_PARAMETER, EGL_FALSE);

    GLint numConfigs = dp->numTotalConfigs;
    if (!configs) {