egl: fix invalid flag detection for EGL_KHR_create_context
authorMatt Turner <mattst88@gmail.com>
Fri, 24 Aug 2012 23:26:54 +0000 (16:26 -0700)
committerMatt Turner <mattst88@gmail.com>
Mon, 27 Aug 2012 22:11:11 +0000 (15:11 -0700)
commit971750e1cd76dabe22bf2ca83f07266837e3a2a6
tree8293ebf198eb490dc2e78f6153f8f92766e2e489
parent77d675926a5a5b6cfafe11d1b692e0ba93fdac85
egl: fix invalid flag detection for EGL_KHR_create_context

We want to check whether there are bits set outside of the valid flags.

Fixes piglit test egl-create-context-invalid-flag-gl

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/egl/main/eglcontext.c