From: Ian Romanick Date: Tue, 14 Aug 2012 20:24:00 +0000 (-0700) Subject: mesa/es3: Add _mesa_is_gles3 predicate X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2a1ca4ff73129825a7578b0a5ed1f0ac9476a4c3;p=mesa.git mesa/es3: Add _mesa_is_gles3 predicate Signed-off-by: Ian Romanick Reviewed-by: Kenneth Graunke --- 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