egl: propagate EGL_BAD_ATTRIBUTE during EGLImage attr parsing
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 13 Jul 2017 19:04:33 +0000 (20:04 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 19 Jul 2017 12:06:50 +0000 (13:06 +0100)
commit644ac2b780366582fe1fee9a677b1f6a508e65dc
tree06d3f8c1785833a8f2d37d46957321278da9d4e2
parenta0755f2e6a1b41b2c5e295fa5ff8eb8dfbf5eb41
egl: propagate EGL_BAD_ATTRIBUTE during EGLImage attr parsing

Earlier commit refactored/split the parsing into separate hunks.
While no functional change was intended, it did not attribute that
different error is set when the attrib. value is incorrect.

Fixes: 3ee2be4113d ("egl: split _eglParseImageAttribList into per
extension functions")
Cc: Michel Dänzer <michel@daenzer.net>
Reported-by: Michel Dänzer <michel@daenzer.net>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Tested-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/egl/main/eglimage.c