[Mesa-dev] [PATCH 7/7] egl: Unify the EGLint/EGLAttrib paths in eglCreateSync*
Emil Velikov
emil.l.velikov at gmail.com
Thu Sep 29 16:32:17 UTC 2016
On 28 September 2016 at 07:28, Chad Versace <chadversary at chromium.org> wrote:
> + if (sizeof(int_list[0]) == sizeof(attrib_list[0])) {
> + attrib_list = (EGLAttrib *) int_list;
> + } else {
> + err = _eglConvertIntsToAttribs(int_list, &attrib_list);
> + if (err != EGL_SUCCESS)
> + RETURN_EGL_ERROR(disp, err, EGL_NO_SYNC);
> + }
> +
> + sync = _eglCreateSync(disp, type, attrib_list, EGL_FALSE,
> EGL_BAD_ATTRIBUTE);
> +
> + if ((void *) int_list != (void *) attrib_list)
Please use the same conditional as above - sizeof(int_list[0]) !=
sizeof(attrib_list[0]).
-Emil
More information about the mesa-dev
mailing list