egl: add check that eglCreateContext gets a valid config
authorTapani Pälli <tapani.palli@intel.com>
Thu, 20 Oct 2016 11:11:16 +0000 (14:11 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Tue, 25 Oct 2016 04:24:11 +0000 (07:24 +0300)
commit5876f3c85a61d73bb4863331bd641152a40a7b0c
tree0b60f47eee3a466e9e85b0ba5a1d29d77661d538
parent58b4fef8bb7b959ac0918d08a76c92c4c86cb262
egl: add check that eglCreateContext gets a valid config

Fixes following dEQP test:

   dEQP-EGL.functional.negative_api.create_context

v2: don't break EGL_KHR_no_config_context (Eric Engestrom)

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Cc: "12.0 13.0" <mesa-stable@lists.freedesktop.org>
src/egl/main/eglapi.c