egl: rework handling EGL_CONTEXT_FLAGS
authorMatthew Waters <ystreet00@gmail.com>
Mon, 14 Sep 2015 17:35:45 +0000 (18:35 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sat, 3 Oct 2015 11:30:13 +0000 (12:30 +0100)
commit11cabc45b7124e51d5ead42db6dceb5a3755266b
tree93a411b2512841be810a2bcef59b6522e883a168
parent443d3bf3408984b11f99c1077d167d8331609007
egl: rework handling EGL_CONTEXT_FLAGS

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 <boyan.j.ding@gmail.com>
Cc: Chad Versace <chad.versace@intel.com>
Cc: "10.6 11.0" <mesa-stable@lists.freedesktop.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91044
Signed-off-by: Matthew Waters <ystreet00@gmail.com>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
src/egl/main/eglcontext.c