diff options
author | Ian Romanick <[email protected]> | 2012-08-14 13:24:00 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2012-08-14 14:39:29 -0700 |
commit | 2a1ca4ff73129825a7578b0a5ed1f0ac9476a4c3 (patch) | |
tree | e88e592079dba2d5738c1b9733b4fdda6bc892ca | |
parent | 9bcb9fad65f0926d665317d6830e9812baafcf86 (diff) |
mesa/es3: Add _mesa_is_gles3 predicate
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
-rw-r--r-- | src/mesa/main/context.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/main/context.h b/src/mesa/main/context.h index 6b7dafa782a..e2387521f57 100644 --- a/src/mesa/main/context.h +++ b/src/mesa/main/context.h @@ -310,6 +310,16 @@ _mesa_is_gles(const struct gl_context *ctx) } +/** + * Checks if the context is for GLES 3.x + */ +static inline GLboolean +_mesa_is_gles3(const struct gl_context *ctx) +{ + return ctx->API == API_OPENGLES2 && ctx->Version >= 30; +} + + #ifdef __cplusplus } #endif |