diff options
author | Marek Olšák <[email protected]> | 2015-05-28 19:11:07 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2015-07-23 00:59:25 +0200 |
commit | fa602c208815c3e4d757072cadc00e617e30b933 (patch) | |
tree | 04146c1a6b49be719418eb9b9f0949d04a14a2cf /src/mesa/main/context.h | |
parent | a894ed82931840713aac25634ed469ac65889bfa (diff) |
mesa: add _mesa_has_tessellation
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/main/context.h')
-rw-r--r-- | src/mesa/main/context.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mesa/main/context.h b/src/mesa/main/context.h index 6f3c941016f..7d256b18d47 100644 --- a/src/mesa/main/context.h +++ b/src/mesa/main/context.h @@ -344,6 +344,17 @@ _mesa_has_compute_shaders(const struct gl_context *ctx) } +/** + * Checks if the context supports tessellation. + */ +static inline GLboolean +_mesa_has_tessellation(const struct gl_context *ctx) +{ + return ctx->API == API_OPENGL_CORE && + ctx->Extensions.ARB_tessellation_shader; +} + + #ifdef __cplusplus } #endif |