diff options
author | Emil Velikov <[email protected]> | 2017-06-28 20:31:18 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-07-12 15:42:51 +0100 |
commit | 81e95924ea1411edc5cc82b284e28c56bd236c4a (patch) | |
tree | 577a7b39bb3f47f826f70342223589f04d73135f /src/egl/main/eglimage.h | |
parent | 9365ff4b885730d76e535edc12445b6f1b72f667 (diff) |
egl: call _eglError within _eglParseImageAttribList
As per EGL_KHR_image_base:
If an attribute specified in <attrib_list> is not one of the
attributes listed in Table bbb, the error EGL_BAD_PARAMETER is
generated.
We should set the error as opposed to simply log it.
Currently we have a partial solution, whereby only some of the callers
call _eglError().
Since that has proven to be less robust, simply set the error by the
function itself and change the return type to EGLBoolean, updating the
callers.
So now the code is slightly simpler. Plus the follow-up fixes will be
easier to manage.
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/egl/main/eglimage.h')
-rw-r--r-- | src/egl/main/eglimage.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/egl/main/eglimage.h b/src/egl/main/eglimage.h index eef98604e7a..87517921320 100644 --- a/src/egl/main/eglimage.h +++ b/src/egl/main/eglimage.h @@ -91,7 +91,7 @@ struct _egl_image }; -extern EGLint +EGLBoolean _eglParseImageAttribList(_EGLImageAttribs *attrs, _EGLDisplay *dpy, const EGLint *attrib_list); |