From: Timothy Arceri Date: Thu, 30 Mar 2017 12:11:34 +0000 (+1100) Subject: mesa: add _mesa_is_no_error_enabled() helper X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3ff1fce6c9a3cc81ada6df62f6c77e345132ca2c;p=mesa.git mesa: add _mesa_is_no_error_enabled() helper Reviewed-by: Nicolai Hähnle --- 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. */