diff options
-rw-r--r-- | src/mesa/main/context.h | 7 |
1 files changed, 7 insertions, 0 deletions
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. */ |