egl: QueryContext on a configless context returns zero
authorAdam Jackson <ajax@redhat.com>
Fri, 9 Sep 2016 16:25:33 +0000 (12:25 -0400)
committerAdam Jackson <ajax@redhat.com>
Mon, 12 Sep 2016 15:28:38 +0000 (11:28 -0400)
commitcc45a5c30872e2070aae6a79dbe0e2bcf7404917
treedeee3fae4a2f6838dd79ed79c7f1683724602487
parente5009b7c2638e1fe10443ae2efafaa3a4e7f19c7
egl: QueryContext on a configless context returns zero

MESA_configless_context does not specify the interaction with
QueryContext at all, and the code to generate an error in this case
predates the Mesa extension. Since EGL_NO_CONFIG_{KHR,MESA} are
numerically identical there's no way to distinguish which one the
application asked for, so use the KHR behaviour.

Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Adam Jackson <ajax@redhat.com>
src/egl/main/eglcontext.c