egl: rework handling EGL_CONTEXT_FLAGS

Graphics / Mesa 3D Graphics Library / Mesa - Matthew Waters [gmail.com] - 3 October 2015 06:30 UTC

As of version 15 of the EGL_KHR_create_context spec, debug contexts are allowed for ES contexts. We should allow creation instead of erroring.

While we're here provide a more comprehensive checking for the other two flags - ROBUST_ACCESS_BIT_KHR and FORWARD_COMPATIBLE_BIT_KHR

v2 [Emil Velikov] Rebase. Minor tweak in commit message.

Cc: Boyan Ding Cc: Chad Versace Cc: "10.6 11.0" Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91044

11cabc4 egl: rework handling EGL_CONTEXT_FLAGS
src/egl/main/eglcontext.c | 49 ++++++++++++++++++++++++++++++++++++++++-----
1 file changed, 44 insertions(+), 5 deletions(-)

Upstream: cgit.freedesktop.org


  • Share