From 5f208d848d1b55953f13672b764935dba2ba0a17 Mon Sep 17 00:00:00 2001 From: Alexandre Demers Date: Wed, 6 Sep 2017 12:20:06 -0400 Subject: [PATCH] Set KHR_NO_ERROR only if environment variable value is true Signed-off-by: Alexandre Demers --- src/gallium/state_trackers/dri/dri_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/dri/dri_context.c b/src/gallium/state_trackers/dri/dri_context.c index 8b9323faa4..b758b62a35 100644 --- a/src/gallium/state_trackers/dri/dri_context.c +++ b/src/gallium/state_trackers/dri/dri_context.c @@ -108,7 +108,7 @@ dri_create_context(gl_api api, const struct gl_config * visual, if (notify_reset) attribs.flags |= ST_CONTEXT_FLAG_RESET_NOTIFICATION_ENABLED; - if (flags & __DRI_CTX_FLAG_NO_ERROR) + if ((flags & __DRI_CTX_FLAG_NO_ERROR) != 0) attribs.flags |= ST_CONTEXT_FLAG_NO_ERROR; if (sharedContextPrivate) { -- 2.14.1