From 3ff1fce6c9a3cc81ada6df62f6c77e345132ca2c Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Thu, 30 Mar 2017 23:11:34 +1100 Subject: mesa: add _mesa_is_no_error_enabled() helper MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Nicolai Hähnle --- src/mesa/main/context.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/mesa') diff --git a/src/mesa/main/context.h b/src/mesa/main/context.h index 9704a96e11f..ccb54635def 100644 --- a/src/mesa/main/context.h +++ b/src/mesa/main/context.h @@ -324,6 +324,13 @@ _mesa_is_gles32(const struct gl_context *ctx) } +static inline bool +_mesa_is_no_error_enabled(const struct gl_context *ctx) +{ + return ctx->Const.ContextFlags & GL_CONTEXT_FLAG_NO_ERROR_BIT_KHR; +} + + /** * Checks if the context supports geometry shaders. */ -- cgit v1.2.3