From: Brian Paul Date: Thu, 17 Sep 2015 15:47:36 +0000 (-0600) Subject: mesa: const-qualify _mesa_base_tex_format() ctx param X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=acee1a322d0a483aa155ff05cfaa124e84865656;p=mesa.git mesa: const-qualify _mesa_base_tex_format() ctx param Reviewed-by: Matt Turner --- diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index 8913a72ad03..9bc176acf04 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -130,7 +130,7 @@ adjust_for_oes_float_texture(GLenum format, GLenum type) * texture format and env mode determine the arithmetic used. */ GLint -_mesa_base_tex_format( struct gl_context *ctx, GLint internalFormat ) +_mesa_base_tex_format(const struct gl_context *ctx, GLint internalFormat) { switch (internalFormat) { case GL_ALPHA: diff --git a/src/mesa/main/teximage.h b/src/mesa/main/teximage.h index a4736b5a29f..a4347204962 100644 --- a/src/mesa/main/teximage.h +++ b/src/mesa/main/teximage.h @@ -60,7 +60,7 @@ _mesa_is_zero_size_texture(const struct gl_texture_image *texImage) /*@{*/ extern GLint -_mesa_base_tex_format( struct gl_context *ctx, GLint internalFormat ); +_mesa_base_tex_format(const struct gl_context *ctx, GLint internalFormat); extern GLboolean