[Mesa-dev] [PATCH 05/20] mesa: Use bool in _mesa_is_ helpers instead of GLboolean

Dylan Baker baker.dylan.c at gmail.com
Wed Apr 29 17:48:28 PDT 2015


For what it's worth, patches 1-5 are:
Reviewed-by: Dylan Baker <baker.dylan.c at gmail.com>

On Wed, Apr 29, 2015 at 04:25:56PM -0700, Ian Romanick wrote:
> From: Ian Romanick <ian.d.romanick at intel.com>
> 
> Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
> ---
>  src/mesa/main/context.h | 8 ++++----
>  1 file 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) &&
> -- 
> 2.1.0
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150429/470b67d9/attachment.sig>


More information about the mesa-dev mailing list