diff options
author | Timothy Arceri <[email protected]> | 2017-03-30 23:11:34 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-04-19 16:53:25 +1000 |
commit | 3ff1fce6c9a3cc81ada6df62f6c77e345132ca2c (patch) | |
tree | 7594ae8c12b2cdc63461881f223c00eebc06b4be /src | |
parent | a0ed0eb3424df32c6ef4cf01f665e24d8fc4a41b (diff) |
mesa: add _mesa_is_no_error_enabled() helper
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src')
-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. */ |