diff options
author | Brian Paul <[email protected]> | 2012-08-17 10:52:16 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-08-18 07:39:52 -0600 |
commit | 1a9e4d5113cf1fd608668506312167a676fcdb4f (patch) | |
tree | c496a809eb2d76c6afde5eacfd1fb5bded01d0bb /src | |
parent | a6af24ee14a3e3cef99e96db539aa2abc911e6e0 (diff) |
mesa: remove unused params, add const qualifiers
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/texparam.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mesa/main/texparam.c b/src/mesa/main/texparam.c index 5a5547daecb..41b9f97bf0f 100644 --- a/src/mesa/main/texparam.c +++ b/src/mesa/main/texparam.c @@ -926,7 +926,7 @@ legal_get_tex_level_parameter_target(struct gl_context *ctx, GLenum target) static void get_tex_level_parameter_image(struct gl_context *ctx, - struct gl_texture_object *texObj, + const struct gl_texture_object *texObj, GLenum target, GLint level, GLenum pname, GLint *params) { @@ -1073,11 +1073,10 @@ invalid_pname: static void get_tex_level_parameter_buffer(struct gl_context *ctx, - struct gl_texture_object *texObj, - GLenum target, GLint level, + const struct gl_texture_object *texObj, GLenum pname, GLint *params) { - struct gl_buffer_object *bo = texObj->BufferObject; + const struct gl_buffer_object *bo = texObj->BufferObject; gl_format texFormat = texObj->_BufferObjectFormat; GLenum internalFormat = texObj->BufferObjectFormat; GLenum baseFormat = _mesa_get_format_base_format(texFormat); @@ -1216,7 +1215,7 @@ _mesa_GetTexLevelParameteriv( GLenum target, GLint level, texObj = _mesa_select_tex_object(ctx, texUnit, target); if (target == GL_TEXTURE_BUFFER) - get_tex_level_parameter_buffer(ctx, texObj, target, level, pname, params); + get_tex_level_parameter_buffer(ctx, texObj, pname, params); else get_tex_level_parameter_image(ctx, texObj, target, level, pname, params); } |