[Mesa-dev] [PATCH 2/4] mesa: const-qualify _mesa_base_tex_format() ctx param
Brian Paul
brianp at vmware.com
Tue Sep 22 08:24:06 PDT 2015
---
src/mesa/main/teximage.c | 2 +-
src/mesa/main/teximage.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index 8913a72..9bc176a 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 a4736b5..a434720 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
--
1.9.1
More information about the mesa-dev
mailing list