mesa: add _mesa_is_no_error_enabled() helper

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
Timothy Arceri 2017-03-30 23:11:34 +11:00
parent a0ed0eb342
commit 3ff1fce6c9

View file

@ -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.
*/