egl: return correct error for EGL_KHR_image_pixmap
authorEric Engestrom <eric@engestrom.ch>
Fri, 15 Mar 2019 11:58:16 +0000 (11:58 +0000)
committerMarge Bot <emma+marge@anholt.net>
Fri, 16 Jun 2023 18:29:26 +0000 (18:29 +0000)
commit5db031bf3ea3e37983f3ab17f2b550e1949d95a9
tree34a3b5cd0f4ac13489c43c2c0b7cd74ef9b6e58d
parent84b47f0d26e7868f47886ba91d26d4df0a88c900
egl: return correct error for EGL_KHR_image_pixmap

EGL_KHR_image_pixmap says:
> If <target> is EGL_NATIVE_PIXMAP_KHR, and <ctx> is not EGL_NO_CONTEXT,
> the error EGL_BAD_PARAMETER is generated.

Reported-by: Rohan Garg <rohan@garg.io>
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/166
Fixes: a1c4a8a3c855d52fbfef "egl: Add support for EGL_KHR_image."
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/454>
src/egl/main/eglapi.c