summaryrefslogtreecommitdiffstats
path: root/src/egl/main/eglcontext.c
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2012-08-24 16:26:54 -0700
committerMatt Turner <[email protected]>2012-08-27 15:11:11 -0700
commit971750e1cd76dabe22bf2ca83f07266837e3a2a6 (patch)
tree8293ebf198eb490dc2e78f6153f8f92766e2e489 /src/egl/main/eglcontext.c
parent77d675926a5a5b6cfafe11d1b692e0ba93fdac85 (diff)
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 <[email protected]>
Diffstat (limited to 'src/egl/main/eglcontext.c')
-rw-r--r--src/egl/main/eglcontext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/egl/main/eglcontext.c b/src/egl/main/eglcontext.c
index 829050d1475..71eca6f8961 100644
--- a/src/egl/main/eglcontext.c
+++ b/src/egl/main/eglcontext.c
@@ -341,7 +341,7 @@ _eglParseContextAttribList(_EGLContext *ctx, _EGLDisplay *dpy,
break;
}
- if ((ctx->Flags & (EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR
+ if ((ctx->Flags & ~(EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR
| EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR
| EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR)) != 0) {
err = EGL_BAD_ATTRIBUTE;