mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
mesa: add _mesa_is_no_error_enabled() helper
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
a0ed0eb342
commit
3ff1fce6c9
1 changed files with 7 additions and 0 deletions
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue