Mesa (master): mesa: add _mesa_is_no_error_enabled() helper
Timothy Arceri
tarceri at kemper.freedesktop.org
Wed Apr 19 07:20:33 UTC 2017
Module: Mesa
Branch: master
Commit: 3ff1fce6c9a3cc81ada6df62f6c77e345132ca2c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3ff1fce6c9a3cc81ada6df62f6c77e345132ca2c
Author: Timothy Arceri <tarceri at itsqueeze.com>
Date: Thu Mar 30 23:11:34 2017 +1100
mesa: add _mesa_is_no_error_enabled() helper
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
---
src/mesa/main/context.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/mesa/main/context.h b/src/mesa/main/context.h
index 9704a96e11..ccb54635de 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.
*/
More information about the mesa-commit
mailing list