From: Ian Romanick Date: Tue, 28 Apr 2015 18:57:39 +0000 (-0700) Subject: mesa: Use bool in _mesa_is_ helpers instead of GLboolean X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fa3475b26931fceeeda7ee7f5ffa61927aacaafb;p=mesa.git mesa: Use bool in _mesa_is_ helpers instead of GLboolean Signed-off-by: Ian Romanick Reviewed-by: Anuj Phogat Reviewed-by: Dylan Baker Reviewed-by: Tapani Pälli --- diff --git a/src/mesa/main/context.h b/src/mesa/main/context.h index 1cd89a84af6..d11027d6ae9 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) &&