diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2015-04-28 11:57:39 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2015-05-04 13:49:58 -0700 |
commit | fa3475b26931fceeeda7ee7f5ffa61927aacaafb (patch) | |
tree | 9da0048687cd7423dd294ae674e9ed96afcd7946 | |
parent | 1ec6523fcfa7c55af6bcaae9375f41d4c06271eb (diff) | |
download | external_mesa3d-fa3475b26931fceeeda7ee7f5ffa61927aacaafb.zip external_mesa3d-fa3475b26931fceeeda7ee7f5ffa61927aacaafb.tar.gz external_mesa3d-fa3475b26931fceeeda7ee7f5ffa61927aacaafb.tar.bz2 |
mesa: Use bool in _mesa_is_ helpers instead of GLboolean
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Dylan Baker <baker.dylan.c@gmail.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
-rw-r--r-- | src/mesa/main/context.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/main/context.h b/src/mesa/main/context.h index 1cd89a8..d11027d 100644 --- a/src/mesa/main/context.h +++ b/src/mesa/main/context.h @@ -285,7 +285,7 @@ do { \ /** * Checks if the context is for Desktop GL (Compatibility or Core) */ -static inline GLboolean +static inline bool _mesa_is_desktop_gl(const struct gl_context *ctx) { return ctx->API == API_OPENGL_COMPAT || ctx->API == API_OPENGL_CORE; @@ -295,7 +295,7 @@ _mesa_is_desktop_gl(const struct gl_context *ctx) /** * Checks if the context is for any GLES version */ -static inline GLboolean +static inline bool _mesa_is_gles(const struct gl_context *ctx) { return ctx->API == API_OPENGLES || ctx->API == API_OPENGLES2; @@ -305,7 +305,7 @@ _mesa_is_gles(const struct gl_context *ctx) /** * Checks if the context is for GLES 3.x */ -static inline GLboolean +static inline bool _mesa_is_gles3(const struct gl_context *ctx) { return ctx->API == API_OPENGLES2 && ctx->Version >= 30; @@ -315,7 +315,7 @@ _mesa_is_gles3(const struct gl_context *ctx) /** * Checks if the context supports geometry shaders. */ -static inline GLboolean +static inline bool _mesa_has_geometry_shaders(const struct gl_context *ctx) { return _mesa_is_desktop_gl(ctx) && |