egl: Fix predecence problem when setting __DRI_CTX_FLAG_NO_ERROR
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 14 Jul 2017 21:26:42 +0000 (14:26 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 14 Jul 2017 22:25:44 +0000 (15:25 -0700)
commitc7af6d2690386f89993cadb6aabd92b74556ad6a
tree4db264746321c7c2711e424e187747329a4abb4c
parentb317cc1b3ce6f54a6e6d2fa0ae335a4837956399
egl: Fix predecence problem when setting __DRI_CTX_FLAG_NO_ERROR

This accidentally set __DRI_CTX_FLAG_NO_ERROR whenever any flags were
present.  Just needs extra parenthesis.

Fixes: 4909519a6655 (egl: Add EGL_KHR_create_context_no_error support)
Reviewed-by: Grigori Goronzy <greg@chown.ath.cx>
Tested-by: Mark Janes <mark.a.janes@intel.com>
src/egl/drivers/dri2/egl_dri2.c