egl: move KHR_no_error vs debug/robustness check further down
authorGrigori Goronzy <greg@chown.ath.cx>
Wed, 19 Jul 2017 21:51:55 +0000 (23:51 +0200)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 26 Jul 2017 10:50:32 +0000 (11:50 +0100)
commit39bf7756b9a56b4827fecabfca00a8139feecd25
tree8fd406962a876dffd96ff7e55414dcf226e52d02
parenta973b9a9f8fe50f3d34d00fbf104e19d00f12560
egl: move KHR_no_error vs debug/robustness check further down

We'll fail to flag an error if the context flags appear after the
no-error attribute in the context attribute list.

Delay the check to after attribute parsing to fix this.

Fixes: 4909519a665 ("egl: Add EGL_KHR_create_context_no_error support")
Cc: mesa-stable@lists.freedesktop.org
[Emil Velikov: add fixes/stable tags, commit message polish]
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/egl/main/eglcontext.c