egl/main: Fix eglMakeCurrent when releasing context from current thread.
authorBeren Minor <beren.minor@gmail.com>
Thu, 20 Mar 2014 07:36:34 +0000 (08:36 +0100)
committerChad Versace <chad.versace@linux.intel.com>
Mon, 2 Jun 2014 19:16:50 +0000 (12:16 -0700)
commit0ca0d5743fb42a956289a87efd4c8fcda88cf93a
tree7f7582364a9aafdea49ea55a892fd39d7f8dccc9
parentf98a7d89be5d307c7a80fbde028a610f4377c3b9
egl/main: Fix eglMakeCurrent when releasing context from current thread.

EGL 1.4 Specification says that
eglMakeCurrent(display, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT)
can be used to release the current thread's ownership on the surfaces
and context.

MESA's egl implementation was only accepting the parameters when the
KHR_surfaceless_context extension is supported.

[chadv] Add quote from the EGL 1.4 spec.
Cc: "10,1, 10.2" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/egl/main/eglapi.c