[Mesa-dev] [PATCH 2/2] mesa: add const qualifier on _mesa_is_renderable_texture_format()

Timothy Arceri tarceri at itsqueeze.com
Tue Dec 5 22:29:07 UTC 2017


Series:

Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>

On 06/12/17 06:08, Brian Paul wrote:
> ---
>   src/mesa/main/teximage.c | 3 ++-
>   src/mesa/main/teximage.h | 3 ++-
>   2 files changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
> index 572e380..e5f8bb0 100644
> --- a/src/mesa/main/teximage.c
> +++ b/src/mesa/main/teximage.c
> @@ -5712,7 +5712,8 @@ _mesa_TextureBufferRange(GLuint texture, GLenum internalFormat, GLuint buffer,
>   }
>   
>   GLboolean
> -_mesa_is_renderable_texture_format(struct gl_context *ctx, GLenum internalformat)
> +_mesa_is_renderable_texture_format(const struct gl_context *ctx,
> +                                   GLenum internalformat)
>   {
>      /* Everything that is allowed for renderbuffers,
>       * except for a base format of GL_STENCIL_INDEX, unless supported.
> diff --git a/src/mesa/main/teximage.h b/src/mesa/main/teximage.h
> index 18452db..2e950bf 100644
> --- a/src/mesa/main/teximage.h
> +++ b/src/mesa/main/teximage.h
> @@ -216,7 +216,8 @@ bool
>   _mesa_format_no_online_compression(const struct gl_context *ctx, GLenum format);
>   
>   GLboolean
> -_mesa_is_renderable_texture_format(struct gl_context *ctx, GLenum internalformat);
> +_mesa_is_renderable_texture_format(const struct gl_context *ctx,
> +                                   GLenum internalformat);
>   
>   extern void
>   _mesa_texture_sub_image(struct gl_context *ctx, GLuint dims,
> 


More information about the mesa-dev mailing list